-
Bug
-
Resolution: Fixed
-
P3
-
8u45
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084806 | emb-9 | Aleksej Efimov | P3 | Resolved | Fixed | team |
JDK-8131559 | 8u66 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8079488 | 8u65 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8076591 | 8u60 | Aleksej Efimov | P3 | Resolved | Fixed | b14 |
JDK-8079099 | 8u51 | Aleksej Efimov | P3 | Resolved | Fixed | b11 |
JDK-8137989 | emb-8u65 | Unassigned | P3 | Resolved | Fixed | b01 |
JDK-8079960 | emb-8u60 | Aleksej Efimov | P3 | Resolved | Fixed | b24 |
JDK-8080197 | emb-8u51 | Aleksej Efimov | P3 | Resolved | Fixed | team |
JDK-8134198 | openjdk7u | Aleksej Efimov | P3 | Resolved | Fixed | master |
There is a test for this bug under
http://hg.openjdk.java.net/jdk9/dev/jdk/rev/0f6be80ba02c.
If you modify the supplied TestEnum.java file and add a few more enum values
(entered below) then
the resulting schema1.xsd has wrong content as the sequence of the enum
values has been changed illegally.
-----------------------------
TestEnumType.java:
import javax.xml.bind.annotation.XmlEnum;
@XmlEnum(String.class)
public enum TestEnumType {
FIRST, ONE, TWO, THREE, FOUR, FIVE, SIX, LAST
---------------------------------
run schemagen on the java file
Resulting schema1.xsd:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="testEnumType">
<xs:restriction base="xs:string">
<xs:enumeration value="FIVE"/>
<xs:enumeration value="FIRST"/>
<xs:enumeration value="LAST"/>
<xs:enumeration value="FOUR"/>
<xs:enumeration value="SIX"/>
<xs:enumeration value="TWO"/>
<xs:enumeration value="THREE"/>
<xs:enumeration value="ONE"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
The contents of the schema1.xsd file is as expected if running the test with
JDK 7.
- backported by
-
JDK-8076591 schema1.xsd has wrong content. Sequence of the enum values has been changed
-
- Resolved
-
-
JDK-8079099 schema1.xsd has wrong content. Sequence of the enum values has been changed
-
- Resolved
-
-
JDK-8079488 schema1.xsd has wrong content. Sequence of the enum values has been changed
-
- Resolved
-
-
JDK-8079960 schema1.xsd has wrong content. Sequence of the enum values has been changed
-
- Resolved
-
-
JDK-8080197 schema1.xsd has wrong content. Sequence of the enum values has been changed
-
- Resolved
-
-
JDK-8084806 schema1.xsd has wrong content. Sequence of the enum values has been changed
-
- Resolved
-
-
JDK-8131559 schema1.xsd has wrong content. Sequence of the enum values has been changed
-
- Resolved
-
-
JDK-8134198 schema1.xsd has wrong content. Sequence of the enum values has been changed
-
- Resolved
-
-
JDK-8137989 schema1.xsd has wrong content. Sequence of the enum values has been changed
-
- Resolved
-
- duplicates
-
JDK-8076549 Update JAX-WS RI integration to latest version (2.2.11-b150402.1412)
-
- Resolved
-
- relates to
-
JDK-8046817 JDK 8 schemagen tool does not generate xsd files for enum types
-
- Closed
-