-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: tools
Javac currently enforces the rule that .class expressions cannot be annotated in the parser; as such, it will not issue a warning for int @A [].class.
This needs to be changed.
This needs to be changed.
- duplicates
-
JDK-8027888 javac wrongly allows annotations in array-typed class literals
-
- Closed
-
- relates to
-
JDK-8046410 AssertionError compiling type annotation on class literal
-
- Closed
-