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

(jdeprscan) tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java failed with class file for jdk.internal.util.random.RandomSupport not found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: tools
    • Labels:
    • Introduced In Version:
      18
    • Resolved In Build:
      b09

      Description

      The test fails after the fix for JDK-8258421 was brought in from JDK 17 automatically. I suspect that was not the right thing to do.

      @Deprecated java.lang.String java.security.Security.getAlgorithmProperty(java.lang.String,java.lang.String)
      @Deprecated javax.crypto.SecretKey.serialVersionUID
      test jdk.jdeprscan.TestRelease.testSuccess(): failure
      java.lang.AssertionError: expected [true] but found [false]
      at org.testng.Assert.fail(Assert.java:99)
      at org.testng.Assert.failNotEquals(Assert.java:1037)
      at org.testng.Assert.assertTrue(Assert.java:45)
      at org.testng.Assert.assertTrue(Assert.java:55)
      at jdk.jdeprscan.TestRelease.testSuccess(TestRelease.java:56)
      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:94)
      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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:833)

      ===============================================
      tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java
      Total tests run: 2, Passes: 1, Failures: 1, Skips: 0
      ===============================================

      ----------System.err:(58/2860)----------
      >>> invoking Main.call with arguments: --list --release 5
      Usage: jdeprscan [options] {dir|jar|class} ...

      options:
              --class-path PATH
              --for-removal
              --full-version
        -? -h --help
        -l --list
              --release 7|8|9|10|11|12|13|14|15|16|17|18
        -v --verbose
              --version
      >>> Main.call returned false
      >>> invoking Main.call with arguments: --list --release 7
      warning: unknown enum constant javax.jws.soap.SOAPBinding.Use.LITERAL
      warning: unknown enum constant javax.annotation.Resource.AuthenticationType.CONTAINER
      >>> Main.call returned true
      >>> invoking Main.call with arguments: --list --release 8
      warning: unknown enum constant javax.jws.soap.SOAPBinding.Use.LITERAL
      >>> Main.call returned true
      >>> invoking Main.call with arguments: --list --release 9
      warning: unknown enum constant javax.jws.WebParam.Mode.IN
      warning: unknown enum constant javax.annotation.Resource.AuthenticationType.CONTAINER
      warning: unknown enum constant javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED
      >>> Main.call returned true
      >>> invoking Main.call with arguments: --list --release 10
      warning: unknown enum constant javax.jws.WebParam.Mode.IN
      warning: unknown enum constant javax.annotation.Resource.AuthenticationType.CONTAINER
      warning: unknown enum constant javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED
      >>> Main.call returned true
      >>> invoking Main.call with arguments: --list --release 11
      >>> Main.call returned true
      >>> invoking Main.call with arguments: --list --release 12
      >>> Main.call returned true
      >>> invoking Main.call with arguments: --list --release 13
      >>> Main.call returned true
      >>> invoking Main.call with arguments: --list --release 14
      >>> Main.call returned true
      >>> invoking Main.call with arguments: --list --release 15
      >>> Main.call returned true
      >>> invoking Main.call with arguments: --list --release 16
      >>> Main.call returned true
      >>> invoking Main.call with arguments: --list --release 17
      error: cannot access jdk.internal.util.random.RandomSupport
        class file for jdk.internal.util.random.RandomSupport not found
      >>> Main.call returned false
      java.lang.Exception: failures: 1
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
      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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:833)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlahoda Jan Lahoda
              Reporter:
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: