Uploaded image for project: 'Reporting Module'
  1. Reporting Module
  2. REPORT-854

Make inner classes static (or seralizable)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • TBD
    • Resolution: Fixed
    • None
    • 1.18.0
    • None
    • None

    Description

      Serialization xstream complains when something it tries to deserialize doesn't have a no-args constructor.

      Non-static inner classes don't have no arg constructors because the constructor always contains a behind-the-scenes reference to the parent class.

      Sometimes serialization xstream can get around that by reflection, but it looks like after a recent Java security update (Java 8 version 222) something has been restricted and this is no longer possible.

      The easiest fix for this is to make inner classes static.

       

      Gliffy Diagrams

        Attachments

          Activity

            People

              mogoodrich Mark Goodrich
              mogoodrich Mark Goodrich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: