RFR (XS) 8027458: VM anonymous classes: wrong context for protected access checks
harold.seigel at oracle.com
Mon Dec 2 13:42:04 PST 2013
Please review this small fix for bug 8027458. It is based on John
Rose's suggested fix that he attached to the bug report. For protected
access, the fix checks if the current class is an anonymous class. If
so, it finds the current class's host class and uses the host class for
checking access to a protected method.
The fix was tested with JCK Lang and VM tests, the failing JCK tests
listed in the bug report, jtreg java/lang, java/util, lambda, and
runtime tests, ute quicktests and vm.mlvm.tests, and defmeth tests.
More information about the hotspot-runtime-dev