java.lang.Character is not supported
------------------------------------

                 Key: JIBX-291
                 URL: http://jira.codehaus.org/browse/JIBX-291
             Project: JiBX
          Issue Type: Bug
    Affects Versions: JiBX 1.2.1
         Environment: JiBX 1.2.1, JDK 6
            Reporter: Robert Novotny


BindGen does not support generating binding definitions for class that contains 
java.lang.Character instance variables.
{noformat}
public class LZPerson {

  private int id;
  private String firstName;
  private String lastName;
  private java.lang.Character netPassport;
}
{noformat}
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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to