[Bug 3587] javaws add all JAR files embeeded inside JNLP references JAR file to the JNLP classpath
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Mon May 14 12:51:16 UTC 2018
https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3587
--- Comment #2 from Robert Marcano <robert at marcanoonline.com> ---
Created attachment 1681
--> https://icedtea.classpath.org/bugzilla/attachment.cgi?id=1681&action=edit
Reproduction test case
Decompress, build with the simple build.sh script and start a local HTTP server
for example the simple Ruby one
port="${1:-3000}"
ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => $port, :DocumentRoot
=> Dir.pwd); trap('INT') { s.shutdown }; s.start"
run the application with javaws http://localhost:3000/test.jnlp
The output will be:
Error Bad class found because embedded jar has the jar extension, it should
not be present on the JNLP classloader
Not error, OK class not found because the embedded jar don't have the jar
extension
The class named Bad should not be present on the JNLP classloader. Bad.class is
on a jar named bad.jar that is not added to the JNLP file, it is simple
emdedded inside the main.jar.
In the case of the class named OK, it is not found because the embedded jar
doesn't have the jar extension. If I am not wrong, the spec does not says that
embedded jars should be added to the JNLP classloader, Oracle implementation
doesn't do that.
The test should be run from a web server URL, running from a local file will
not trigger the problem.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20180514/8376729f/attachment.html>
More information about the distro-pkg-dev
mailing list