[jdk17u-dev] RFR: 8308184: Launching java with large number of jars in classpath with java.protocol.handler.pkgs system property set can lead to StackOverflowError
Sruthy Jayan
duke at openjdk.org
Wed Jun 12 06:23:17 UTC 2024
On Tue, 11 Jun 2024 16:51:01 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:
> LGTM. In the future, please explain what you had to resolve when doing backports. In this case, I can see that you skipped removal of imports because they are still used.
@TheRealMDoerr
Thank you for reviewing the PR:
Regarding the testing :
I have a sample Java program that prints "Hello, world." After compiling the code, I created two JAR files from the .class file. When I run the Java command with the created JARs in the classpath and the -Djava.protocol.handler.pkgs system property set to a package name, when I use the -verbose option along , the second JAR in the classpath gets loaded first.
To resolve this issue I had done the backports.
-------------
PR Comment: https://git.openjdk.org/jdk17u-dev/pull/2550#issuecomment-2162193770
More information about the jdk-updates-dev
mailing list