RFR(M): 8165550: Add class loader names to ClassCastException message

Mandy Chung mandy.chung at oracle.com
Tue Nov 15 21:03:13 UTC 2016


> On Nov 15, 2016, at 12:49 PM, Rachel Protacio <rachel.protacio at oracle.com> wrote:
> 
> Updated webrev: http://cr.openjdk.java.net/~rprotacio/8165550.02/
>    - added macro in ModuleEntry.hpp for "java.base" to address Lois' comment (opened enhancement https://bugs.openjdk.java.net/browse/JDK-8169734 for other existing cases)
>    - added an assert instead of a NULL check for the class loader data
>    - fixed NEW_RESOURCE_ARRAY_RETURN_NULL calls

Looks okay to me.  It’d be good if you can add a test case testing a custom named class loader with unnamed module.

Mandy



More information about the hotspot-runtime-dev mailing list