JiBX
  1. JiBX
  2. JIBX-291

java.lang.Character is not supported

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major 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 :
      0

      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

        Hide
        Dennis Sosnoski added a comment -

        Corrected the tables.

        Show
        Dennis Sosnoski added a comment - Corrected the tables.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Robert Novotny
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: