Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.9.5.3
-
Fix Version/s: None
-
Component/s: XML code generator
-
Labels:None
-
Environment:Operating System: Windows 2000
Platform: PC
-
Bugzilla Id:1580
-
Number of attachments :
Description
SourceGenerator generates class descriptor files for classes specified in the
<extends/> element of the binding file.
If in my binding file I have:
<n:complexTypeBinding name="Fault">
<java-class abstract="true">
<extends>java.lang.Exception</extends>
</java-class>
</n:complexTypeBinding>
A class descriptor is generated that looks like:
public class FaultDescriptor extends java.lang.ExceptionDescriptor {
...
}
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 "castor-bug.xsd" -types j2 -nomarshall -binding-file castor-bug-binding.xml
Attachments to be added:
-Example schema.
-Example binding file.
Created an attachment (id=431)
Example schema.