Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: 1.1.1
-
Component/s: XML code generator
-
Labels:None
-
Environment:Win XP
-
Number of attachments :
Description
The code generator appears to not honor some enumBinding specifications in binding file. Using attached test bindings file, output will be the same regardless of whether or not bindings file is specified when generating code.
How it was run from command line:
java.org.exolab.castor.builder.SourceGeneratorMain -i schematest\enumBindingTest.xsd -package org.whatever.btest -binding-file testbinding.xml
Castor did appear to be at least examining the bindings file, as adding something invalid to the bindings file would result in an error while parsing the bindings file.
Using the included example, the generated file includes:
/**
- The 5810 type
*/
public static final int VALUE_5810_TYPE = 0;
/**
- The instance of the 5810 type
*/
public static final OrganizationalType VALUE_5810 = new OrganizationalType(VALUE_5810_TYPE, "5810");
The goal was to have the VALUE_5810 renamed as specified in the bindings file.