RFR(xs) 8196121 runtime/appcds/ClassLoaderTest.java fails silently
Ioi Lam
ioi.lam at oracle.com
Wed Feb 28 06:56:29 UTC 2018
Thanks for catching this. I will update it to say ClassLoaderTest.java
- Ioi
On 2/27/18 9:00 PM, Jiangli Zhou wrote:
> Hi Ioi,
>
> Looks ok. Can you please update the out dated comment
> in ForNameTest.java? AppCDSClassLoaderTest is the current
> ClassLoaderTest.java (?).
>
> 29 // Hello is on the bootclasspath. The defining classloader is
> 30 // the NULL classloader. See AppCDSClassLoaderTest.
> Thanks,
> Jiangli
>
>> On Feb 27, 2018, at 2:37 PM, Ioi Lam <ioi.lam at oracle.com
>> <mailto:ioi.lam at oracle.com>> wrote:
>>
>> Please review a very simple fix:
>>
>> https://bugs.openjdk.java.net/browse/JDK-8196121
>> http://cr.openjdk.java.net/~iklam/jdk11/8196121-appcds-class-loader-test-fails-silently.v01/
>>
>> Cause: the test was archiving the Hello class, but tried to assert that
>> this class must not be archived.
>>
>> Fix: flip the assertion
>>
>> Also some clean up:
>>
>> [1] Use the new TestCommon.run(...).assertNormalExit() API
>> to make code more maintainable.
>> [2] Explicitly check the bootloader of the HelloWB class instead of
>> relying on -Xlog:class+load
>>
>>
>> Thanks
>> - Ioi
>
More information about the hotspot-runtime-dev
mailing list