tools/javac/parser/JavacParserTest.java fails with "IOException failed: java.lang.RuntimeException: Unexpected AST"

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 16
    • Component/s: tools

      The following test fails in the JDK16 CI:

      tools/javac/parser/JavacParserTest.java

      Here's a snippet from the log file:

      testDeepNestingNoClose: OK
      testCompDeclVarType: OK
      Test void JavacParserTest.testErrorRecoveryClassNotBrace() throws java.io.IOException failed: java.lang.RuntimeException: Unexpected AST, got:
      package t;

      class Test {
          String.<error> <error>;
          
          class <error> {
          }
          
          class <error> {
          }
          
          class A {
          }
          
          public class B {
          }
      }
      testCaseBodyStatements: OK
      testCorrectWildcardPositions2: OK
      testMissingParenthesisError: OK
      testMissingExponent: OK
      testCompoundAssignment: OK
      testCorrectWildcardPositions4: OK
      testWrongFirstToken: OK
      Passed: 45, Failed 1
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Tests failed: 1


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Tests failed: 1

      Since this is a Tier1 failure, I'm starting this bug as a P2.

            Assignee:
            Unassigned
            Reporter:
            Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: