-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
19
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
```
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
```
- duplicates
-
JDK-8282832 Update file path for HostnameMatcher/cert5.crt in test sun/security/util/Pem/encoding.sh
- Resolved
- relates to
-
JDK-7192189 Support endpoint identification algorithm in RFC 6125
- Resolved