JDK-8153651 : Update wsgen to be multi-release jar aware
  • Type: Sub-task
  • Component: core-libs
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Other
  • Submitted: 2016-04-06
  • Updated: 2016-06-02
  • Resolved: 2016-06-02
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 b109Resolved
Related Reports
Relates :  
Relates :  
Description
It's possible wsgen does not need to be multi-release aware, so first an investigation is in order and if it needs updating, update it.
Comments
The issue requested an investigation to determine if wsgen is multi-release jar aware. The investigation concluded that it is. No further work is required.
02-06-2016

wsgen uses javac and javac is multi-release jar aware, thus wsgen is also multi-release jar aware. This can be demonstrated by the following test with the attached TestServerInfo.jar $ wsgen -keep -cp TestServerInfo.jar test.TestServerInfo This creates a file, test/jaxws/GetJavaVersion.java. Inspection of that file reveals the following annotations @XmlRootElement(name = "version9", namespace = "http://test/") @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "version9", namespace = "http://test/") Notice the version9 strings. Had the test failed, they would be version8
02-06-2016