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

Update error recovery when parsing void in expression mode

    Details

    • Type: Bug
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd_major
    • Component/s: tools
    • Labels:

      Description

      During work on JDK-8055783 for creation of golden files for negative tests, error messages reported for tools/javac/VoidArray.java showed a parser issue in error recovery when 'void' is used in expression mode.

      Error keys:
      +VoidArray.java:12:9: compiler.err.expected: token.identifier
      +VoidArray.java:12:13: compiler.err.expected: token.identifier
      +VoidArray.java:14:9: compiler.err.expected: token.identifier
      +VoidArray.java:14:12: compiler.err.invalid.meth.decl.ret.type.req
      +VoidArray.java:14:24: compiler.err.expected: token.identifier
      +VoidArray.java:14:28: compiler.err.expected3: ',', ')', '['
      +6 errors

      The fix for this should reduce the number of error messages for this test case. Once this issue is fixed, please update the corresponding VoidArray.out for error messages.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: