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

Update error recovery when parsing void in expression mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 9
    • 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.

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

              Created:
              Updated: