Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-275

Adapter implementations that indirectly inherit from Adapter throw MapperException on deserialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.13
    • 1.2.0
    • Mapper
    • None

    Description

      Mapper release 1.1.13 created a regression in the treatment of Adapter implementations that indirectly inherit from Adapter.
      "Indirect inheritance" is such that the type does not directly implement Adapter, but extends some other type that implements Adapter).
      A brief look into the cause of the issue is that the "reverse" adapter key cannot be found/determined and causes a NullPointerException to be thrown when trying to utilize the null AdapterKey.
      It should be noted that this behavior worked without issue in 1.1.12.
      Attached is a test case that exemplifies the issue.

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            steven.walters Steven Walters
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: