Loading... (original) (raw)
- Type:
Bug
- Resolution: Fixed
- Priority:
P2
- Affects Version/s: repo-valhalla
In
I mistakenly "optimised" the self-check in VerifyAccess.isMemberAccessible by removing the check for "private Lookup" - thinking class A can access any member of class A. But I missed the point that this is a Lookup instance that might have restricted Lookup capability - ie public only - in which case access to private members must be rejected. The check for "private Lookup" capability is critically important.
relates to
JDK-8195826 [Nestmates] Cleanup sun/invoke/util/VerifyAccess.java
- Resolved