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

Request to improve error messages for labeled declarations

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b35
    • Verification:
      Verified

      Backports

        Description

        During work on JDK-8055079 for creation of golden files for negative tests, it was suggested to improve error message for test cases with
        Test: langtools/test/tools/javac/LabeledDeclaration.java. Golden file for this test will require updates once this issue is fixed.

        Current error message:
        langtools/test/tools/javac/LabeledDeclaration.java:35: error: '.class' expected
            foo: int i = 111;
                     ^
        langtools/test/tools/javac/LabeledDeclaration.java:35: error: not a statement
            foo: int i = 111;
                 ^
        2 errors

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jlahoda Jan Lahoda
                  Reporter:
                  sogoel Sonali Goel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: