JDK-8010319 : Implementation of JEP 181: Nest-Based Access Control
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-03-19
  • Updated: 2022-07-08
  • Resolved: 2018-06-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 12
11 b20Fixed 12Fixed
Related Reports
Blocks :  
CSR :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8187296 :  
JDK-8199363 :  
JDK-8199658 :  
JDK-8199659 :  
JDK-8199660 :  
JDK-8199661 :  
JDK-8199662 :  
JDK-8199663 :  
JDK-8203901 :  
Description
Align the JVM checking rules with Java language rules for methods, constructors, and fields in nested classes. In particular, allow a class file to access private names of other class files compiled within the scope of a single top-level declaration.  Ensure that class files contain accurate descriptions of class and interface nesting.

See JEP at JDK-8046171
Comments
URL: http://hg.openjdk.java.net/jdk/jdk/rev/2f2af62dfac7 User: dholmes Date: 2018-06-23 07:43:38 +0000
23-06-2018

The RFR for nestmates has gone out: http://mail.openjdk.java.net/pipermail/hotspot-dev/2018-May/032228.html http://mail.openjdk.java.net/pipermail/serviceability-dev/2018-May/023718.html http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-May/053144.html http://mail.openjdk.java.net/pipermail/compiler-dev/2018-May/011885.html
15-05-2018

Initial development is being done in the valhalla repo under the nestmates branch: https://bugs.openjdk.java.net/issues/?jql=project%20%3D%20jdk%20and%20fixVersion%20%3D%20repo-valhalla%20and%20labels%20in%20(%22nestmates%22)
07-09-2017

This is the main issue to be used for pushing the nestmate changes to mainline ready for release. Some specific sub-tasks will be added for related work.
07-09-2017

Note: there are a number of tests using inner classes (to simplify tests running in parallel in jteg not having their own directories), that are explicitly testing access controls. These will need to be rewritten.
21-11-2014

POC for both 292 and LinkResolver.
09-10-2013

POC patch to JSR 292 to allow nestmate access. Requires a similar patch to JVM code to enable for invocation instructions.
09-10-2013

It is JEP 181, which is now published: http://openjdk.java.net/jeps/181
22-04-2013