RFR: 8291640: java/beans/XMLDecoder/8028054/Task.java should use the 3-arg Class.forName
Alan Bateman
alanb at openjdk.org
Wed Aug 3 06:01:42 UTC 2022
On Tue, 2 Aug 2022 20:30:17 GMT, Phil Race <prr at openjdk.org> wrote:
> My best guess is that it was added so that the tests deliberately provoked using continuations to verify everything worked but that with the change there's no point since it won't load any classes that use them .. ?
That's right. These tests triggered the initialization of classes that depend on the VM being started with --enable-preview. With the proposed change here, the classes will be loaded but not initialized so it won't execute code that needs preview features to be enabled.
-------------
PR: https://git.openjdk.org/jdk/pull/9704
More information about the client-libs-dev
mailing list