RFR: 8358729: jdk/internal/loader/URLClassPath/ClassnameCharTest.java depends on Applet

Jaikiran Pai jpai at openjdk.org
Wed Jun 11 17:07:30 UTC 2025


On Wed, 11 Jun 2025 16:56:48 GMT, Justin Lu <jlu at openjdk.org> wrote:

> so I used the ClassFile API to create those class files.

Use of ClassFile API I think is a good approach.

> Using JDKToolFinder.getCompileJDKTool("jar") with the CF API seems reasonable to do all the work dynamically. I will take a look, thanks for the idea.

If you run into trouble using the `jar` tool, then we have other APIs/ways to generate such JAR file within the test. I'll let you continue experimenting with the `jar` tool and if you think you will need help at some point, then let me know and I can try a few things in this test.

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

PR Comment: https://git.openjdk.org/jdk/pull/25703#issuecomment-2963567634


More information about the core-libs-dev mailing list