RFR: 8356308: Assert with -Xlog:class+path when classpath has an empty element

Ioi Lam iklam at openjdk.org
Mon Jun 2 16:55:05 UTC 2025


On Thu, 22 May 2025 09:48:11 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> When the classpath has an element that's the empty string (e.g., `java  -Xlog:class+path -cp :abc ...`, where the first element is `""` and the second element is `"abc"`), the VM asserts.
>> 
>> The bug happens because `ClasspathStream` does not correctly omit the empty elements at the beginning of the classpath.
>> 
>> I also improved the logs to help debugging classpath mismatches when using the AOT cache.
>
> This sounds like a bug in `-cp` parsing to me!

Thanks @dholmes-ora @calvinccheung for the review

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

PR Comment: https://git.openjdk.org/jdk/pull/25372#issuecomment-2931572656


More information about the hotspot-runtime-dev mailing list