Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8041931

test/sun/net/www/http/HttpClient/B8025710.java fails with cannot find keystore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u5
    • Fix Version/s: 8u20
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b13

      Backports

        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 {

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                chegar Chris Hegarty
                Reporter:
                chegar Chris Hegarty
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: