Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.9.5.3, 1.0, 1.0.1, 1.0.2, 1.0.3
-
Fix Version/s: 1.0.4
-
Component/s: XML code generator
-
Labels:None
-
Environment:Operating System: other
Platform: PC
-
Bugzilla Id:1575
-
Testcase included:yes
-
Number of attachments :
Description
When generating source from a schema that has the type "xsd:base64Binary" the
equals method generated by the SourceGenerator generates a xxx.equals( yyy )
where xxx and yyy are of type byte[], from the "xsd:base64Binary" schema type.
This will always be false, it should be Arrays.equals( xxx, yyy ), or something
similar.
Test case details:
1) SourceGenerator command: java cp .;castor-0.9.5.3.jar;castor-0.9.5.3
xml.jar;xml-apis.jar;xercesImpl.jar org.exolab.castor.builder.SourceGenerator -
i "D:\backup\d_drive\Portals\WSRP\castor-bug.xsd" -types j2 -nomarshall
Attachments to be added:
-Example schema
-castorbuilder.properties
Issue Links
- is duplicated by
-
CASTOR-723
SourceGenerator: "-testable" flag generates uncompilable "testing" code for type xsd:base64Binary
-
1. |
Implement equals() for AnyNode | |
|
Edward Kuns |