-
Bug
-
Resolution: Unresolved
-
P4
-
9
The end positions for some diagnostics differ if queried immediately when the diagnostic is reported, and when queried when the compilation is over. The known diagnostics for which this happens are those reported for these example files:
test/tools/javac/diags/examples/CannotCreateArrayWithTypeArgs.java
test/tools/javac/diags/examples/CatchWithoutTry.java
test/tools/javac/diags/examples/ConstantSVUID.java
test/tools/javac/diags/examples/ElseWithoutIf.java
test/tools/javac/diags/examples/FinallyWithoutTry.java
test/tools/javac/diags/examples/IllegalStartOfStmt.java
test/tools/javac/diags/examples/IllegalStartOfStmt.java
test/tools/javac/diags/examples/MissingDeprecatedAnnotation.java
test/tools/javac/diags/examples/MissingSVUID.java
test/tools/javac/diags/examples/NotAStatement.java
test/tools/javac/diags/examples/NotAllowedClass.java
test/tools/javac/diags/examples/NotAllowedVariable.java
test/tools/javac/diags/examples/PotentialLambdaFound.java
test/tools/javac/diags/examples/TryResourceThrowsInterruptedExc.java
test/tools/javac/diags/examples/UnexpectedSemicolon.java
test/tools/javac/diags/examples/VarargsMustBeLast.java
test/tools/javac/diags/examples/CannotCreateArrayWithTypeArgs.java
test/tools/javac/diags/examples/CatchWithoutTry.java
test/tools/javac/diags/examples/ConstantSVUID.java
test/tools/javac/diags/examples/ElseWithoutIf.java
test/tools/javac/diags/examples/FinallyWithoutTry.java
test/tools/javac/diags/examples/IllegalStartOfStmt.java
test/tools/javac/diags/examples/IllegalStartOfStmt.java
test/tools/javac/diags/examples/MissingDeprecatedAnnotation.java
test/tools/javac/diags/examples/MissingSVUID.java
test/tools/javac/diags/examples/NotAStatement.java
test/tools/javac/diags/examples/NotAllowedClass.java
test/tools/javac/diags/examples/NotAllowedVariable.java
test/tools/javac/diags/examples/PotentialLambdaFound.java
test/tools/javac/diags/examples/TryResourceThrowsInterruptedExc.java
test/tools/javac/diags/examples/UnexpectedSemicolon.java
test/tools/javac/diags/examples/VarargsMustBeLast.java