RFR: 8210943: Hiding of inner classes not resolved properly

Hannes Wallnöfer hannes.wallnoefer at oracle.com
Thu Nov 29 17:01:25 UTC 2018


Please review:

Bug: https://bugs.openjdk.java.net/browse/JDK-8210943
Webrev: http://cr.openjdk.java.net/~hannesw/8210943/webrev.00/

AccessibleMembersLookup#lookupAccessibleMembers adds all nested classes returned by Class.getClasses(), but these may contain inherited classes that are shadowed and thus not visible from the current class. The solution is to make sure we use the first inner class with any given name.

Thanks,
Hannes


More information about the nashorn-dev mailing list