Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.0.2
-
Component/s: XML code generator
-
Labels:None
-
Number of attachments :
Description
When executing 'build gen.mapping' a NullPointerExceptio is thrown and mapping classes are not generated.
The NullPointerException is thrown at XmlBindingComponent.getCollectionType() line 1204. The method looks like:
public String getCollectionType() {
String result = null;
if (_type == MEMBER)
return result;
}
The problem is that _member.getCollection() returns null. If you change method to:
public String getCollectionType() {
String result = null;
if ((_type == MEMBER) && (_member.getCollection() != null)) { result = _member.getCollection().toString(); }
return result;
}
The NullPointerException does not happen any more and source is generated. What I'm not able to tell if generated code looks and works like it should. I guess this problem has been introduced with changes to castor-1470 even if the part where I aplied the fix has not been changed with it.
Issue Links
- is related to
-
CASTOR-1470
Java 5 compatible code generatedfrom Castor xml
-
Activity
Ralf Joachim
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Link |
This issue is related to |
Werner Guttmann
made changes -
| Assignee | Werner Guttmann [ wguttmn ] | Ralf Joachim [ rjoachim ] |
Ralf Joachim
made changes -
| Attachment | patch-C1483-20060801.txt [ 21983 ] |
Ralf Joachim
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
Werner Guttmann
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Having said that I set priority to blocker as I fear that sourcegen always fails when using a binding file.