Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8038090

End positions for some diagnostics change during the compilation process

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • tools

      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

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: