[jdk11u-dev] RFR: 8308184: Launching java with large number of jars in classpath with java.protocol.handler.pkgs system property set can lead to StackOverflowError [v3]

Sruthy Jayan duke at openjdk.org
Thu Jun 13 15:52:13 UTC 2024


On Thu, 13 Jun 2024 15:44:30 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> Ok, the actual fix is clean, now. Please describe your test changes.

I added _JarBuilder.java_ because the _LargeClasspathWithPkgPrefix.java_ test case depended on _test/lib/jdk/test/lib/util/JarBuilder.java_. 

Additionally, I updated the String literal handling; since Java multi-line string literals are supported only from JDK 13, I modified the code to use a StringBuilder instead.

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

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2749#issuecomment-2166067297


More information about the jdk-updates-dev mailing list