Jackson JSON Processor
  1. Jackson JSON Processor
  2. JACKSON-167

Map and Collection sub-classes seem to lose generic information for deserialization

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      It looks like deserializing of following class:

      static class MapSubClass extends HashMap<String,MyClass> { }

      does not work as expected; instead of properly bound and typed content, deserialization works as if type was specified as Map<Object,Object>.
      Same occurs with Collection types as well.

      In addition, looks like @JsonDeserialize annotation is not properly (or at least completely) handled with Map/Collection types either.

        Activity

        Hide
        Tatu Saloranta added a comment -

        Fixed, added unit tests to verify.

        Show
        Tatu Saloranta added a comment - Fixed, added unit tests to verify.
        Hide
        Tatu Saloranta added a comment -

        Included in 1.3.0.

        Show
        Tatu Saloranta added a comment - Included in 1.3.0.

          People

          • Assignee:
            Tatu Saloranta
            Reporter:
            Tatu Saloranta
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: