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

sun/security/util/Pem/encoding.sh fails after JDK-7192189

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 19
    • Fix Version/s: None
    • Component/s: security-libs

      Description

      STDERR:
      Exception in thread "main" java.io.FileNotFoundException: /home/jdk/test/jdk/sun/security/util/Pem/../HostnameMatcher/cert5.crt (No such file or directory)
              at java.base/java.io.FileInputStream.open0(Native Method)
              at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
              at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
              at java.base/java.io.FileInputStream.<init>(FileInputStream.java:111)
              at PemEncoding.main(PemEncoding.java:29)


      Fix:
      ```
      diff --git a/test/jdk/sun/security/util/Pem/encoding.sh b/test/jdk/sun/security/util/Pem/encoding.sh
      index 2bc39504218..7f8b142caf8 100644
      --- a/test/jdk/sun/security/util/Pem/encoding.sh
      +++ b/test/jdk/sun/security/util/Pem/encoding.sh
      @@ -1,5 +1,5 @@
       #
      -# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
      +# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
       # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       #
       # This code is free software; you can redistribute it and/or modify it
      @@ -32,4 +32,4 @@

       $TESTJAVA/bin/java $TESTVMOPTS -cp $TESTCLASSES \
               -Dfile.encoding=UTF-16 \
      - PemEncoding $TESTSRC/../HostnameMatcher/cert5.crt
      + PemEncoding $TESTSRC/../HostnameChecker/cert5.crt
      ```

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jiefu Jie Fu
              Reporter:
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: