RFR(xs) 8196121 runtime/appcds/ClassLoaderTest.java fails silently
Jiangli Zhou
jiangli.zhou at Oracle.COM
Wed Feb 28 05:00:34 UTC 2018
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> 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