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

Request to improve error messages for labeled declarations

XMLWordPrintable

    • b35
    • Verified

        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

              jlahoda Jan Lahoda
              sogoel Sonali Goel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: