JDK-8080663 : Use sun.misc.SharedSecrets to allow access from java.management to @ConstructorProperties
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-05-19
  • Updated: 2015-10-16
  • Resolved: 2015-05-26
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 b68Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
After JDK-7198070 reflection is used to provide access to @ConstructorProperties from java.management classes.

This approach is not optimal in the modular world.

There already exists the sun.misc.SharedSecrets class enabling to effectively define optional dependencies allowing a safe access across module boundaries. The code in java.management package using the @ConstructorProperties annotation should be updated to use this mechanism instead.
Comments
The proper functionality of introspecting @ConstructorProperties annotated types is covered by a bunch of existing JMX tests.
26-05-2015