[Bug 3720] New: System jars (jars of the jre itself) are not recognized as such under windows
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Mon Apr 1 08:26:39 UTC 2019
https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3720
Bug ID: 3720
Summary: System jars (jars of the jre itself) are not
recognized as such under windows
Product: IcedTea-Web
Version: hg
Hardware: x86_64
OS: Windows
Status: NEW
Severity: critical
Priority: P5
Component: NetX (javaws)
Assignee: jvanek at redhat.com
Reporter: lhersch at dssgmbh.de
CC: unassigned at icedtea.classpath.org
Created attachment 1731
--> https://icedtea.classpath.org/bugzilla/attachment.cgi?id=1731&action=edit
described patch
In that they are not recognized as such, it then attempts to acquire
permissions based on the system policies, which then fails and leads to an
exception.
I think if the jre directory contains blank characters, the problem also
appears under linux.
The problem arises from comparing a URL with a platform-specific string.
Under linux e.g. made the following comparison that works.
"/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunjce_provider.jar".startsWith("/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext");
Under windows e.g. made the following comparison that does not work.
"/C:/Program%20Files/Java/jre1.8.0_201/lib/ext/sunjce_provider.jar".startsWith("C:\Program
Files\Java\jre1.8.0_201\lib\ext");
Enclosed a patch that fixes 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: <https://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20190401/55771bc2/attachment.html>
More information about the distro-pkg-dev
mailing list