RFR(M): 8199940: Print more information about class loaders in IllegalAccessErrors.

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Wed May 16 13:30:22 UTC 2018


I finally prepared the webrev for this change.
I simplified the messages wrt. to my first intent that was found too 

The IllegalAccessErrors in classFileParser report more verbose 
information about the class loaders. 
As I understand, the class loaders are the reason for the error here, 
so I think information about them is useful. See also the tests 1-3.
I added reporting whether the class is abstract.

In linkResolver, I just switch to class_loader_and_module_name() 
to report a more verbose class name as Lois requested.
I removed mentioning the resolved class in the method case.
I report the modifiers of methods/fields.
But as I understand, even here the class loader can be the reason
of the Error, see tests 6-8.

Please review.  I'm happy to improve the messages further :)

Best regards,

More information about the hotspot-runtime-dev mailing list