diff --git a/compile/interface/src/main/scala/xsbt/ExtractAPI.scala b/compile/interface/src/main/scala/xsbt/ExtractAPI.scala index 6875f5d40..5c4475cd3 100644 --- a/compile/interface/src/main/scala/xsbt/ExtractAPI.scala +++ b/compile/interface/src/main/scala/xsbt/ExtractAPI.scala @@ -636,7 +636,7 @@ class ExtractAPI[GlobalType <: CallbackGlobal](val global: GlobalType, // a) they are recorded as normal source methods anyway // b) there is no way to distinguish them from user-defined methods val associated = List(b, b.getter(b.enclClass), b.setter(b.enclClass)).filter(_ != NoSymbol) - associated.flatMap(ss => annotations(in, ss.annotations)).distinct.toArray; + associated.flatMap(ss => annotations(in, ss.annotations.filter(_.isStatic))).distinct.toArray; } private def annotatedType(in: Symbol, at: AnnotatedType): xsbti.api.Type = {