Update error recovery when parsing void in expression mode

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P5
    • tbd
    • Affects Version/s: 9
    • Component/s: tools

      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.

            Assignee:
            Jan Lahoda
            Reporter:
            Sonali Goel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: