-
Bug
-
Resolution: Fixed
-
P4
-
8
-
b36
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085419 | emb-9 | Jan Lahoda | P4 | Resolved | Fixed | team |
Code:
@MyAnnotation( value=5, foo=6 )
public class Class2 {
}
@interface MyAnnotation {
int value();
}
The error is marked at the value '6', not the identifier 'foo':
Class2.java:1: error: cannot find symbol
@MyAnnotation( value=5, foo=6 )
^
symbol: method foo()
location: @interface MyAnnotation
1 error
This worked fine in JDK7 but is broken in JDK8
@MyAnnotation( value=5, foo=6 )
public class Class2 {
}
@interface MyAnnotation {
int value();
}
The error is marked at the value '6', not the identifier 'foo':
Class2.java:1: error: cannot find symbol
@MyAnnotation( value=5, foo=6 )
^
symbol: method foo()
location: @interface MyAnnotation
1 error
This worked fine in JDK7 but is broken in JDK8
- backported by
-
JDK-8085419 Javac reports wrong error offset for unknown identifier of annotation element/value pair
-
- Resolved
-