[11u] RFR 8216401: Allow "file:" URLs in Class-Path of local JARs
Zhengyu Gu
zgu at redhat.com
Wed Jul 31 20:32:26 UTC 2019
I would like to backport this patch to 11u, as it appears to be on
Oracle's backport list.
The patch does not apply cleanly. The fix itself applies cleanly, but
included test does not, apparently due to test infrastructure changes.
Original Bug: https://bugs.openjdk.java.net/browse/JDK-8216401
Original Webrev:
https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-January/057868.html
Original review thread:
https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-January/057868.html
11u webrev: http://cr.openjdk.java.net/~zgu/JDK-8216401-11u/webrev.00/
Test:
Passed included test.
Diff:
diff -r 8967c5ef0b65
test/jdk/jdk/internal/loader/URLClassPath/JarClassPathFileEntry.java
---
a/test/jdk/jdk/internal/loader/URLClassPath/JarClassPathFileEntry.java
Mon Jan 14 11:22:32 2019 -0800
+++
b/test/jdk/jdk/internal/loader/URLClassPath/JarClassPathFileEntry.java
Wed Jul 31 16:15:11 2019 -0400
@@ -28,14 +28,14 @@
import java.nio.file.Paths;
import java.util.jar.Attributes;
import java.util.jar.Manifest;
-import jdk.test.lib.util.JarUtils;
import jdk.test.lib.compiler.InMemoryJavaCompiler;
/*
* @test
* @bug 8216401
* @summary Test loading of JAR Class-Path entry with file: scheme
- * @library /test/lib
+ * @library /lib/testlibrary /test/lib
+ * @build JarClassPathFileEntry JarUtils jdk.testlibrary.*
*
* @run main/othervm JarClassPathFileEntry
* @run main/othervm
-Djdk.net.URLClassPath.disableClassPathURLCheck=true JarClassPathFileEntry
Thanks,
-Zhengyu
More information about the jdk-updates-dev
mailing list