JDK-8139727 : Define ConstructorParameters annotation type for MXBeans
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 8
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-10-16
  • Updated: 2016-05-02
  • Resolved: 2015-11-03
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 b92Fixed
Related Reports
Cloners :  
Relates :  
Relates :  
Sub Tasks
JDK-8177525 :  
Description
MXBean currently supports model-specific types annotated with 
java.beans.ConstructorProperties that is tightly coupled with
the client API.  A MXBean developer will likely want to avoid
using java.beans.ConstructorProperties if it ends up in the
desktop module that their code doesn't want to pull in.  In
that case, the code has to write to achieve the same effort
by defining the from(CompositeData) method.

Suggestion from Eamonn McManus [1]:
Allow ConstructorProperties annotations from any package

[1] http://mail.openjdk.java.net/pipermail/jmx-dev/2012-September/000077.html

Comments
Instead of consuming any '@**.ConstructorProperties' annotation it will be better to define a standard JMX @ConstructorParameters annotation. The name is chosen as not to confuse developers working with the standard java beans into using this JMX specific annotation instead of @java.beans.ConstructorProperties.
26-10-2015