[MDSAL-468] Use @ConstructorParameters in addition to @ConstructorProperties Created: 28/Aug/19 Updated: 28/Aug/19 Resolved: 28/Aug/19 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding codegen |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.0 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
javax.management.ConstructorParameters is the Java 9 replacement of java.beans.ConstructorProperties for JMX purposes. While backwards compatibility is present, using java.beans means our generated code has a dependency on java.desktop module – which is an overkill including AWT/swing, etc. |
| Comments |
| Comment by Robert Varga [ 28/Aug/19 ] |
|
We can probably generate both and use 'requires static' to make them optional to resolve at runtime. |