Community
Participate
Working Groups
When attempting to bootstrap from the following XSD, the user will get the exception "JClass name byte[] contains illegal character [". <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="myNamespace" xmlns:myns="myNamespace" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="person" type="myns:person"/> <xs:complexType name="person"> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="abyte" type="xs:byte"/> <xs:element name="image" type="xs:base64Binary"/> </xs:sequence> </xs:complexType> </xs:schema> The primitive byte[] that gets generated because of the base64 field is not interpreted properly.
Created attachment 187045 [details] Proposed patch.
Fixed, reviewed by mmacivor. New test cases: DynamicJAXBFromOXMTestCases : testBinary() DynamicJAXBFromXSDTestCases : testBinary() DynamicJAXBFromXSDTestCases : testBinaryGlobalType()
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink