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

[11u] JDK-8214908 broke two CTW tests

    XMLWordPrintable

Details

    • b01

    Description

      JDK-8214908 backport to 11u broke the tests:

      ```
      % CONF=linux-x86_64-normal-server-fastdebug make run-test TEST="applications/ctw/modules/jdk_jfr.java applications/ctw/modules/jdk_management_jfr.java"

      STDERR:
      com.sun.javatest.regtest.agent.ModuleHelper$Fault: unexpected exception: java.lang.reflect.InvocationTargetException
              at com.sun.javatest.regtest.agent.ModuleHelper.addExportsOrOpens(ModuleHelper.java:134)
              at com.sun.javatest.regtest.agent.ModuleHelper.addExports(ModuleHelper.java:43)
              at com.sun.javatest.regtest.agent.MainActionHelper.runClass(MainActionHelper.java:170)
              at com.sun.javatest.regtest.agent.AgentServer.doMain(AgentServer.java:317)
              at com.sun.javatest.regtest.agent.AgentServer.run(AgentServer.java:242)
              at com.sun.javatest.regtest.agent.AgentServer.main(AgentServer.java:71)
      Caused by: java.lang.reflect.InvocationTargetException
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at com.sun.javatest.regtest.agent.ModuleHelper.addExportsOrOpens(ModuleHelper.java:128)
              ... 5 more
      Caused by: java.lang.reflect.InvocationTargetException
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at java.base/java.lang.JTRegModuleHelper.addExports(JTRegModuleHelper.java:51)
              ... 10 more
      Caused by: java.lang.IllegalArgumentException: package jdk.internal.access not in contents
              at java.base/java.lang.Module.implAddExportsOrOpens(Module.java:885)
              at java.base/java.lang.Module.implAddExports(Module.java:785)
              ... 15 more

      TEST RESULT: Error. Can't init module exports: unexpected exception: java.lang.reflect.InvocationTargetException
      --------------------------------------------------
      Test results: error: 1
      ```

      The hunks added by the backport make no sense for 11u:
      https://github.com/openjdk/jdk11u-dev/commit/9d4da7c1dfb829ef5973857c2707b0feadeaa8c7

      ...because `jdk.internal.access` package is not present in 11u. It was added later with JDK-8211122.

      Attachments

        Issue Links

          Activity

            People

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: