Commit 4bd649c 1 parent a065a38 commit 4bd649c Copy full SHA for 4bd649c
File tree 2 files changed +16
-10
lines changed
org/eclipse/jdt/internal/compiler/ast
2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ We are using a patched version of ECJ 4.23 to incorporate fixes for:
5
5
* Issue [ 844] ( https://github.com/eclipse-jdt/eclipse.jdt.core/issues/844 ) [ PR 845] ( https://github.com/eclipse-jdt/eclipse.jdt.core/pull/845 )
6
6
(Bugzilla: [ 574111] ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=574111 ) [ Gerrit] ( https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/181728 ) )
7
7
8
+ * Bugzilla [ 533199] ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=533199 )
9
+ - Reverting part of commit [ Bug 552082 - Fix the applicability of a no-@target annotation type] ( https://github.com/eclipse-jdt/eclipse.jdt.core/commit/c07bc1c3061d9d8cee7ea123d74e67f097c7ad56 )
10
+ - [ JDK specification discussion] ( https://mail.openjdk.org/pipermail/compiler-dev/2019-September/013705.html )
8
11
9
12
## Issue with source/target and JDKs
10
13
Original file line number Diff line number Diff line change @@ -775,11 +775,12 @@ public boolean isRuntimeTypeInvisible() {
775
775
}
776
776
long metaTagBits = annotationBinding .getAnnotationTagBits (); // could be forward reference
777
777
778
- if ((metaTagBits & (TagBits .AnnotationTargetMASK )) != 0 ) {
779
- if ((metaTagBits & (TagBits .AnnotationForTypeParameter | TagBits .AnnotationForTypeUse )) == 0 ) {
780
- return false ;
781
- }
782
- } // else: no-@Target always applicable
778
+ if ((metaTagBits & (TagBits .AnnotationTargetMASK )) == 0 ) { // explicit target required for JSR308 style annotations.
779
+ return false ;
780
+ }
781
+ if ((metaTagBits & (TagBits .AnnotationForTypeParameter | TagBits .AnnotationForTypeUse )) == 0 ) {
782
+ return false ;
783
+ }
783
784
784
785
if ((metaTagBits & TagBits .AnnotationRetentionMASK ) == 0 )
785
786
return true ; // by default the retention is CLASS
@@ -794,11 +795,13 @@ public boolean isRuntimeTypeVisible() {
794
795
}
795
796
long metaTagBits = annotationBinding .getAnnotationTagBits ();
796
797
797
- if ((metaTagBits & (TagBits .AnnotationTargetMASK )) != 0 ) {
798
- if ((metaTagBits & (TagBits .AnnotationForTypeParameter | TagBits .AnnotationForTypeUse )) == 0 ) {
799
- return false ;
800
- }
801
- } // else: no-@Target always applicable
798
+ if ((metaTagBits & (TagBits .AnnotationTargetMASK )) == 0 ) { // explicit target required for JSR308 style annotations.
799
+ return false ;
800
+ }
801
+ if ((metaTagBits & (TagBits .AnnotationForTypeParameter | TagBits .AnnotationForTypeUse )) == 0 ) {
802
+ return false ;
803
+ }
804
+
802
805
if ((metaTagBits & TagBits .AnnotationRetentionMASK ) == 0 )
803
806
return false ; // by default the retention is CLASS
804
807
You can’t perform that action at this time.
0 commit comments