RFR: 8365588: defineClass that accepts a ByteBuffer does not work as expected [v2]
Alan Bateman
alanb at openjdk.org
Wed Oct 8 05:14:01 UTC 2025
On Tue, 7 Oct 2025 19:36:31 GMT, Xueming Shen <sherman at openjdk.org> wrote:
> Does ParameterizedTest support vm/platform classloader isolation for each parameterized test run against the same test with different parameters?
I should have been clearer in my comment. The suggestion to use a ParameterizedTest is to exercise a custom class loader using super.defineClass with different buffers (direct, heap, position != 0, ...) so that it exercises the "non-trusted" cases.
You are right that testing the platform class loader (as a trusted class loader) will require opening java.lang.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27569#discussion_r2412517612
More information about the core-libs-dev
mailing list