Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1384

Objects in a List is not correctly unmarshalled by JSONMarshaller

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.0.0.Beta4
    • kie server

      When JSONMarshaller marshalls and unmarshalls an object which has a List and the List contains custom class objects, the objects inside the List are instantiated but their properties are not populated.

      For example)

      Before marshall:

      PojoA [name=A, pojoBList=[PojoB [name=B1, pojoCList=[PojoC [name=C1], PojoC [name=C2]]], PojoB [name=B2, pojoCList=[PojoC [name=C3]]]], stringList=[Hello, Bye]]
      

      After marshall+unmarshall:

      PojoA [name=A, pojoBList=[PojoB [name=null, pojoCList=null], PojoB [name=null, pojoCList=null]], stringList=[Hello, Bye]]
      

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: