[PATCH] 8218268: Javac treats Manifest Class-Path entries as Paths instead of URLs

Donald Kwakkel dkwakkel at gmail.com
Fri Mar 15 23:06:59 UTC 2019


After discussion and conclusion on core-libs-dev the spec is changed
that manifest classpath must be handled the same in java as javac. And
Jonathan told me to continue now on this list.

I created a fix + tests for
https://bugs.openjdk.java.net/browse/JDK-8218268. Now the manifest
classpath is behaving the same in javac and java for file paths as it
was in java 8. See attached first patch.

Now I would like to reuse the code of URLClassLoader (see second
attached patch), but it seems I can not use SharedSecrets from
FSInfo.java:

* For target buildtools_interim_langtools_modules_jdk.compiler.interim__the.BUILD_jdk.compiler.interim_batch:
jdk/src/jdk.compiler/share/classes/com/sun/tools/javac/file/FSInfo.java:51:
error: package jdk.internal.access does not exist
import jdk.internal.access.SharedSecrets;

Where should I locate the common code and how can it be called both
from URLClassLoader and FSInfo?

Kind Regards,

Donald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: first.patch
Type: text/x-patch
Size: 8402 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20190316/5f74dcd4/first-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: second.patch
Type: text/x-patch
Size: 23644 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20190316/5f74dcd4/second-0001.patch>


More information about the compiler-dev mailing list