JDK-8245005 : javax/net/ssl/compatibility/BasicConnectTest.java failed with No enum constant
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 8,11,15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-14
  • Updated: 2021-08-17
  • Resolved: 2020-05-15
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 11 JDK 15 JDK 8 Other
11.0.11Fixed 15 b24Fixed 8u271Fixed openjdk8u302Resolved
Related Reports
Duplicate :  
Relates :  
Description
Exception in thread "main" java.lang.ExceptionInInitializerError
    at JdkInfoUtils.supportedProtocols(JdkInfoUtils.java:51)
    at JdkInfoUtils.main(JdkInfoUtils.java:102)
Caused by: java.lang.IllegalArgumentException: No enum constant CipherSuite.TLS_KRB5_WITH_RC4_128_SHA
    at java.lang.Enum.valueOf(Enum.java:238)
    at CipherSuite.cipherSuite(CipherSuite.java:244)
    at Utilities.lambda$getAllCipherSuites$0(Utilities.java:102)
    at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
    at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:546)
    at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
    at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:438)
    at Utilities.getAllCipherSuites(Utilities.java:106)
    at Utilities.<clinit>(Utilities.java:84)
Comments
Fix Request (OpenJDK 11u): Please approve this test-only change to OpenJDK 11u which allows one to run TLS interop tests. JDK 15 patch applies clean. Without the fix running the test fails as described in the bug description. With the fix I was able to test interop between JDK 8 and 11. Risk should be minimal as it's a test only change and the current state is broken.
18-12-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/7a4d31a184f6 User: jjiang Date: 2020-05-15 21:50:45 +0000
15-05-2020

Some cipher suites, like TLS_KRB5 ones, supported by some JDK builds are not in javax/net/ssl/TLSCommon/ChpherSuite.java
14-05-2020