JDK-8270060 : (jdeprscan) tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java failed with class file for jdk.internal.util.random.RandomSupport not found
  • Type: Bug
  • Component: tools
  • Affected Version: 18
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2021-07-08
  • Updated: 2022-02-10
  • Resolved: 2021-07-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 b09Fixed
Related Reports
Relates :  
Relates :  
Relates :  
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)

Comments
Changeset: b59418f4 Author: Jan Lahoda <jlahoda@openjdk.org> Date: 2021-07-30 07:58:51 +0000 URL: https://git.openjdk.java.net/jdk/commit/b59418f47d8e69f6aec3411b105e2512d19f6cd1
30-07-2021

Should be possible to resolve after JDK-8270075 is solved.
09-07-2021