-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 27
-
Component/s: core-libs
-
master
`SimpleSSLContext::get` can return null, and hence, every call site is decorated with
sslContext = new SimpleSSLContext().get();
if (sslContext == null) {
throw new AssertionError("Unexpected null sslContext");
}
Introduce a new static factory method that is guaranteed to return a non-null `SSLContext`, or throw an exception if it fails to do so.
The migration of tests to the new method, and the removal of old methods will be implemented in follow-up ticket(s) to help with reviewing and backporting.
sslContext = new SimpleSSLContext().get();
if (sslContext == null) {
throw new AssertionError("Unexpected null sslContext");
}
Introduce a new static factory method that is guaranteed to return a non-null `SSLContext`, or throw an exception if it fails to do so.
The migration of tests to the new method, and the removal of old methods will be implemented in follow-up ticket(s) to help with reviewing and backporting.
- blocks
-
JDK-8373515 Migrate "test/jdk/java/net/httpclient/" to null-safe "SimpleSSLContext" methods
-
- In Progress
-
-
JDK-8373538 Migrate all tests to null-safe "SimpleSSLContext" methods
-
- In Progress
-
-
JDK-8373537 Migrate "test/jdk/com/sun/net/httpserver/" to null-safe "SimpleSSLContext" methods
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/629e4ac6
-
Review(master)
openjdk/jdk/28765