JDK-8152645 : VarHandle lookup access control tests
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-03-24
  • Updated: 2016-05-27
  • Resolved: 2016-04-11
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 9
9 b114Fixed
Related Reports
Blocks :  
Description
Create access control tests for VarHandle lookup of fields.

Modifiers
--
1) non-static
2) static
3) final non-static?
4) final static?


Access
���
1) public x;
2) private x;
3) protected x
4) /* package */ x


Lookup
���
1) non-static
2) static
3) unreflect


Lookup from
���
1) within same class
2) from another class in same package
3) from another extending class in same package
4) from another class in different package
5) from another extending class in different package


Consider enhancing later across module boundaries with and without qualified exports.