JDK-8224256 : test/jdk/java/security/SecureClassLoader/DefineClass.java hardcodes 127.0.0.1
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-05-20
  • Updated: 2019-07-05
  • Resolved: 2019-05-22
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 13
13 b23Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
test/jdk/java/security/SecureClassLoader/DefineClass.java checks that a security manager works with "http://127.0.0.1". This fails on IPv6-only systems.
Comments
This test is now failing on our systems! ----------System.err:(14/874)---------- java.lang.Exception: Granted permissions not correct at DefineClass.checkPerms(DefineClass.java:201) at DefineClass.main(DefineClass.java:166) 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:567) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127) at java.base/java.lang.Thread.run(Thread.java:830) JavaTest Message: Test threw exception: java.lang.Exception: Granted permissions not correct JavaTest Message: shutting down test Will file a new bug.
23-05-2019