jaxb
  1. jaxb
  2. JAXB-898

Jaxb should accept 0|1 for booleans in addition to true|false

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      See: https://issues.apache.org/jira/browse/AXIS2-5140 which is an similar case.
      We get parse exceptions if a boolean field is expressed with the values 0|1, while from the specs [1] it seems this should be allowed? I'm a bit unsure how to understand the lexical vs canonical terms.

      1: http://www.w3.org/TR/xmlschema-2/#boolean

        Activity

        Hide
        laune added a comment -

        A JIRA is not a good way to ask for help. Please use the user's list for describing your problem.

        JAXB has no problem with unmarshalling all 4 values of the lexical space, including "0" and "1".

        Show
        laune added a comment - A JIRA is not a good way to ask for help. Please use the user's list for describing your problem. JAXB has no problem with unmarshalling all 4 values of the lexical space, including "0" and "1".
        Hide
        Martin Grebac added a comment -

        Hi, would you please share a simple testcase? Do you reproduce your problem also with latest JAXB builds?

        Show
        Martin Grebac added a comment - Hi, would you please share a simple testcase? Do you reproduce your problem also with latest JAXB builds?

          People

          • Assignee:
            Martin Grebac
            Reporter:
            davidkarlsen2
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: