OpenEngSB
  1. OpenEngSB
  2. OPENENGSB-3539

convert JSON to Model instance does not work if there is a tail

    Details

      Description

      There is a problem with the current JSON support in the OpenEngSB. If you want to translate a JSON string to a model, where this model has some elements in the tail, the conversion fails due to a type mismatch.

      This happens, because the model class has no information about the type of the tail since it is inserted via byte code manipulation through javassist, which does not support generics yet.

      To solve this problem, an additional deserializer should be added to the JsonUtils class which takes care about conversions of unknown type (in our case, for OpenEngSBModelEntry elements)

        Gliffy Diagrams

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Felix Mayerhuber
              Reporter:
              Felix Mayerhuber
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: