Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JiBX 1.2.1
-
Fix Version/s: JiBX 1.2.2
-
Component/s: None
-
Labels:None
-
Environment:JiBX 1.2.1, JDK 6
-
Number of attachments :
Description
BindGen does not support generating binding definitions for class that contains java.lang.Character instance variables.
public class LZPerson {
private int id;
private String firstName;
private String lastName;
private java.lang.Character netPassport;
}
Running BindGen causes:
Exception in thread "main" java.lang.IllegalStateException: No way to handle type java.util.Character.
The possible reason is the incorrect mapping from primitive types to XSD types and the incorrect definition of primitive types. They assume the class java.lang.Char, however the correct primitive type wrapper is java.lang.Character.
The affected classes are:
org.jibx.binding.BindingGenerator (s_objectPrimitiveSet)
org.jibx.binding.SchemaGenerator (s_objectTypeMap)
org.jibx.util.Types (s_objectTypeMap)
Activity
Dennis Sosnoski
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | JiBX 1.2.2 [ 15120 ] | |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Dennis Sosnoski [ dsosnoski ] |
Dennis Sosnoski
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Corrected the tables.