Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-8256

The Jackson ObjectMapper used by a PdxInstance does not properly handle Java 8 Types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 1.9.2, 1.10.0, 1.11.0, 1.12.0
    • None
    • serialization

    Description

      The Jackson ObjectMapper in the PdxInstanceImpl class (see here)is not properly configured.

      Specifically, it cannot handle Java 8 types since these types are not included in Jackson 2, by default, primarily because Jackson 2 is based on Java 6 (not Java 8). However, that does not mean Jackson 2 cannot handle Java 8 types, when configured properly with extension modules.

      To make matters worse, the ObjectMapper used by PDX, and specifically the PdxInstance implementation, violates the Open/Closed software design principle, so there is literally no way to modify (i.e. override/extend) the configuration of the ObjectMapper as required by the application.

      See here for a test case demonstrating the issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jblum John Blum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: