RFR(S) 8226645: [TESTBUG] some AppCDS tests relies on illegal reflective access
Alan Bateman
Alan.Bateman at oracle.com
Tue Aug 13 07:33:33 UTC 2019
On 12/08/2019 19:11, Calvin Cheung wrote:
> :
>> In addition, tests such as LoaderSegregation create the ClassLoader
>> so they can define the class (C2 in this case) directly, no need for
>> a dummy class.
>>
> For this test to work, the lookupClass' loader needs to be a
> java.net.URLClassLoader. Only this test requires a dummy class and the
> current fix is fairly simple. I'd like to leave the fix as is for now.
>
This test shouldn't need a lookup class. It also doesn't need to use
Util.defineClassFromJAR. The test creates a URLClassLoader and just
needs to have it define c2, nothing more.
-Alan
More information about the hotspot-runtime-dev
mailing list