Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2916

unmarshalling the JSON of a subclass fails when a field value is null

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.9
    • Fix Version/s: 2.4, 2.3.4
    • Component/s: JAX-RS
    • Labels:
      None
    • Environment:

      Windows XP, JDK 1.6.0_14

    • Estimated Complexity:
      Moderate

      Description

      Unmarshalling the JSON :

      {"@xsi.type" : "subClassTest", "id" : "10000000", "name" : null }

      should give an instance of SubClassTest.class and the value of the field name(which is a String) should be null, but with the current implementation the value of the field name is String "null" .

      This happens only in the case of unmarshalling JSON to a subclass.

        Attachments

        1. CXF-2916.patch
          3 kB
          Andrew Nelson
        2. CXF-2916-jettison.patch
          0.8 kB
          Andrew Nelson

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              chaitanyak Chaitanya Choleti
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified