JDK-8153649 : Update schemagen 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 schemagen 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 schemagen is multi-release jar aware. The investigation concluded that it is. No further work is required.
02-06-2016

schemagen uses javac and javac is multi-release jar aware, thus schemagen is also multi-release jar aware. This can be demonstrated by the following test with the attached TestSchemagen.jar $ schemagen -cp TestSchemagen.jar test.Person This creates a file, schema1.xsd, with the following content: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:complexType name="person"> <xs:sequence/> <xs:attribute name="lastName" type="xs:string"/> <xs:attribute name="identifier" type="xs:int" use="required"/> <xs:attribute name="version9" type="xs:string"/> </xs:complexType> </xs:schema> Notice the attribute named version9. Had the test failed, it would be named version8.
02-06-2016