Loading... (original) (raw)

Uploaded image for project: 'JDK'

  1. JDK
  2. JDK-8196320

[Nestmates] Restore the old enclosing-class based isSamePackageMember check in sun/invoke/util/VerifyAccess.java

We still need the enclosing-class based access check for when dealing with pre-nestmate classfile versions. Otherwise Lookup.in stops working.

More generally we need to look at what tests may need to be run when compiled for JDK 11 and for pre-11.

relates to

Bug - A problem which impairs or prevents the functions of the product. JDK-8197395 [Nestmates] VerifyAccess.isMemberAccessible must not allow private access between legacy nested types