-
Bug
-
Resolution: Fixed
-
P3
-
repo-valhalla
After going through the issue in JDK-8197395, there is no need to change VerifyAccess.isSameMemberPackage to be aware of nestmates, as nestmates will already pass the enclosing class check. So we can restore this code to its existing mainline form.
This leaves the legacy behaviour of Lookup.in exactly as it was, and adds no special cases for nestmates.
This leaves the legacy behaviour of Lookup.in exactly as it was, and adds no special cases for nestmates.
- relates to
-
JDK-8197395 [Nestmates] VerifyAccess.isMemberAccessible must not allow private access between legacy nested types
-
- Resolved
-