Details
-
Bug
-
Resolution: Fixed
-
P3
-
7-pool, 8
-
b102
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8028732 | 7u60 | Robert Mckenna | P3 | Closed | Won't Fix |
Description
Run the test attached, it runs Javac through JSR199. It should print a start and end position (of the diagnostic) larger than 0, but it prints -1 as the end position.
The code Javac compiles looks like this (the error for 'B' has no end position):
"public class Test{ Object o = new A().new B(); class A { } }"
The code Javac compiles looks like this (the error for 'B' has no end position):
"public class Test{ Object o = new A().new B(); class A { } }"
Attachments
Issue Links
- backported by
-
JDK-8028732 javac doesn't fill in end position for some errors of type not found
-
- Closed
-
- relates to
-
JDK-8031585 Have the compiler assert when missing End Positions
-
- Open
-
-
JDK-8019421 Javac doesn't fill in end position for some annotation related errors
-
- Closed
-
-
JDK-8019422 Javac doesn't fill in end position for uninitialized variable errors
-
- Closed
-