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

tools/javac/importscope/NegativeCyclicDependencyTest.java failed with "NullPointerException: Cannot read field "enclClass" because "env" is null"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: External
    • Affects Version/s: 16
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x_10.15

      Description

      The following test failed in the JDK16 CI:

      tools/javac/importscope/NegativeCyclicDependencyTest.java

      Here's a snippet from the log file:

      ----------direct:(24/2499)----------
      An exception has occurred in the compiler (16-ea). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
      java.lang.NullPointerException: Cannot read field "enclClass" because "env" is null
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$HierarchyPhase.doCompleteEnvs(TypeEnter.java:762)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:255)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:270)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:202)
      at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:681)
      at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1409)
      at jdk.compiler/com.sun.tools.javac.comp.Enter.complete(Enter.java:584)
      at jdk.compiler/com.sun.tools.javac.comp.Enter.main(Enter.java:561)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1069)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:936)
      at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:317)
      at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:176)
      at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:82)
      at jdk.internal.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.RegressionCompileCommand.run(RegressionCompileCommand.java:189)
      at com.sun.javatest.regtest.agent.CompileActionHelper.runCompile(CompileActionHelper.java:92)
      at com.sun.javatest.regtest.agent.AgentServer.doCompile(AgentServer.java:262)
      at com.sun.javatest.regtest.agent.AgentServer.run(AgentServer.java:229)
      at com.sun.javatest.regtest.agent.AgentServer.main(AgentServer.java:69)
      printing javac parameters to: /System/Volumes/Data/mesos/work_dir/slaves/4076d11c-c6ed-4d07-84c1-4ab8d55cd975-S390370/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e774489f-044a-42fe-b382-404badf95a28/runs/6388752e-6488-4b5f-a2a5-e054aebe7bd2/testoutput/test-support/jtreg_open_test_langtools_tier1/scratch/3/javac.20201014_130226.args
      result: Error. compiler crashed (exit code 4)

      Starting this bug as a P2 since this is a Tier1 test failure.

        Attachments

          Activity

            People

            • Assignee:
              jlahoda Jan Lahoda
              Reporter:
              dcubed Daniel Daugherty
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: