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

pdx ReflectionBasedAutoSerializer will fail on java 16 and later

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • serialization

    Description

      The pdx ReflectionBasedAutoSerializer will not work on java 16 and later because it calls Field.setAccessible which is not allowed under normal conditions starting with java 16 (see: https://softwaregarden.dev/en/posts/new-java/illegal-access-in-java-16 ).

      To workaround this failure set the JVM command line option: --illegal-access=permit

      The call is made in org.apache.geode.pdx.internal.AutoSerializableManager#getClassInfo and is required for the auto serializer to function correctly.

       

       

       

       

      Attachments

        Activity

          People

            echobravo Ernest Burghardt
            dschneider Darrel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: