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

[17u] java/lang/reflect/callerCache/ReflectionCallerCacheTest.java run fails with -Xcomp: Class AccessTest$PublicStaticFinalField not unloaded!

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 17
    • core-libs
    • None

      test command:

      The testcase ReflectionCallerCacheTest.java run failed with -Xcomp, both on linux-x86_64 and linux-aarch64.
      And it run pass by jdk23 binary with the same testcase and the same jvm options(-Xcomp)


      jtreg -va -nr -w tmp -Xcomp test/jdk/java/lang/reflect/callerCache/ReflectionCallerCacheTest.java
      result:

      test ReflectionCallerCacheTest.load("AccessTest$PrivateFinalField"): failure
      java.lang.RuntimeException: Class AccessTest$PrivateFinalField not unloaded!
              at ReflectionCallerCacheTest.load(ReflectionCallerCacheTest.java:111)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
              at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
              at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
              at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
              at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
              at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
              at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
              at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
              at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
              at org.testng.TestRunner.privateRun(TestRunner.java:764)
              at org.testng.TestRunner.run(TestRunner.java:585)
              at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
              at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
              at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
              at org.testng.SuiteRunner.run(SuiteRunner.java:286)
              at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
              at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
              at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
              at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
              at org.testng.TestNG.runSuites(TestNG.java:1069)
              at org.testng.TestNG.run(TestNG.java:1037)
              at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
              at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
              at java.base/java.lang.Thread.run(Thread.java:840)
      git repo info:

      > git remote -v ; git branch ; git log -n 1
      origin git@github.com:openjdk/jdk17u-dev.git (fetch)
      origin git@github.com:openjdk/jdk17u-dev.git (push)
      * master
      commit 0790496aca419ad4b8e94290d5df6afac177e05b (HEAD -> master, origin/master, origin/HEAD)
      Author: Goetz Lindenmaier <goetz@openjdk.org>
      Date: Tue Jan 30 11:58:45 2024 +0000

          8317144: Exclude sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java on Linux ppc64le
          
          Backport-of: bc5a39bb54725a38db716691091b43a1868601c6


        There are no Sub-Tasks for this issue.

            Unassigned Unassigned
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: