JDK-8041931 : test/sun/net/www/http/HttpClient/B8025710.java fails with cannot find keystore
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8u5
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-04-25
  • Updated: 2014-10-15
  • Resolved: 2014-04-28
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 7 JDK 8
7u76Fixed 8u20 b13Fixed
Related Reports
Relates :  
Description
Trivial update to a recent test that was added for JDK-8025710. In JDK 8 ( and previous ) the test keystore is at different location to that of JDK 9.

diff --git a/test/sun/net/www/http/HttpClient/B8025710.java b/test/sun/net/www/http/HttpClient/B8025710.java
--- a/test/sun/net/www/http/HttpClient/B8025710.java
+++ b/test/sun/net/www/http/HttpClient/B8025710.java
@@ -43,7 +43,7 @@
     private final static AtomicBoolean connectInServer = new AtomicBoolean();
     private static final String keystorefile =
             System.getProperty("test.src", "./")
-            + "/../../../../../javax/net/ssl/etc/keystore";
+            + "/../../../../../sun/security/ssl/etc/keystore";
     private static final String passphrase = "passphrase";
 
     public static void main(String[] args) throws Exception {