Lines 378-383
Link Here
|
378 |
break checkTargetCompatibility; |
378 |
break checkTargetCompatibility; |
379 |
} else if ((metaTagBits & TagBits.AnnotationForType) != 0) |
379 |
} else if ((metaTagBits & TagBits.AnnotationForType) != 0) |
380 |
break checkTargetCompatibility; |
380 |
break checkTargetCompatibility; |
|
|
381 |
else { |
382 |
// Annotations that target a package are kosher for the synthetic interface type |
383 |
// package-info. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=258906 |
384 |
char [] name = ((ReferenceBinding)this.recipient).sourceName(); |
385 |
if (name != null && CharOperation.equals(name, TypeConstants.PACKAGE_INFO_NAME)) { |
386 |
if ((metaTagBits & TagBits.AnnotationForPackage) != 0) |
387 |
break checkTargetCompatibility; |
388 |
} |
389 |
} |
381 |
break; |
390 |
break; |
382 |
case Binding.METHOD : |
391 |
case Binding.METHOD : |
383 |
if (((MethodBinding)this.recipient).isConstructor()) { |
392 |
if (((MethodBinding)this.recipient).isConstructor()) { |