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
Hi,
I finally prepared the webrev for this change.
I simplified the messages wrt. to my first intent that was found too
verbose.
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 :)
http://cr.openjdk.java.net/~goetz/wr18/8199940-exMsg-IllegalAccess/01/
Best regards,
Goetz.
More information about the hotspot-runtime-dev
mailing list