Re: [8] RFR (XS): 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package

2014-01-27 Thread John Rose
This is safe as a point fix, since (a) Lookup.checkSymbolicClass vets 'refc' before checkMemberAccess is called, and (b) the JVMS does not in fact call for 'defc' to also be accessible, if it is inherited via 'refc'. There is a slightly different problem here, a code cleanup problem. The javad

Re: [8] RFR (XS): 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package

2014-01-27 Thread Christian Thalinger
Looks good. On Jan 27, 2014, at 8:05 AM, Vladimir Ivanov wrote: > http://cr.openjdk.java.net/~vlivanov/8032585/webrev.00/ > https://bugs.openjdk.java.net/browse/JDK-8032585 > > JSR292 access verification logic refuses method handle lookup access to > methods which are defined on inaccessible

[8] RFR (XS): 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package

2014-01-27 Thread Vladimir Ivanov
http://cr.openjdk.java.net/~vlivanov/8032585/webrev.00/ https://bugs.openjdk.java.net/browse/JDK-8032585 JSR292 access verification logic refuses method handle lookup access to methods which are defined on inaccessible classes. This is usually correct, but in the corner case of inheritance throu