RFR: 8338626: CDS handling of JAR Class-Path attribute should allow / separator on Windows

David Holmes dholmes at openjdk.org
Wed Sep 11 07:03:09 UTC 2024


On Wed, 11 Sep 2024 06:57:36 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> How about this?
>> 
>>> ClassLoaderExt::process_jar_manifest() should allow / separator on Windows
>
> My question still remains: does regular classpath handling allow both forward- and back-slashes on Windows?

Based on Calvin's description, and the definition of the `Class-path` attribute then the code to extract foo.jar should always be using `/` not `os::file_separator`, and then the classpath element should be constructed using `os::file_separator`.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/20924#discussion_r1753300832


More information about the hotspot-runtime-dev mailing list