You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a dedicated flag to represent Java annotations
A Java interface that extends java.lang.annotation.Annotation might not be a
Java annotation, so to prevent false positives we need to keep track of whether
an interface is also an annotation when parsing Java sources and bytecode.
} // for the lazy val in ScalaSigBytes to be GC'ed, the invoker of emitAnnotations() should hold the ScalaSigBytes in a method-local var that doesn't escape.
417
416
*/
418
-
case t @Apply(constr, args) if t.tpe.derivesFrom(JavaAnnotationClass) =>
417
+
case t @Apply(constr, args) if t.tpe.classSymbol.is(JavaAnnotation) =>
419
418
valtyp= t.tpe.classSymbol.denot.info
420
419
valassocs= assocsFromApply(t)
421
420
valdesc= innerClasesStore.typeDescriptor(typ) // the class descriptor of the nested annotation class
0 commit comments