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

Make inner classes static (or seralizable)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.18.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Undetermined

      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.

       

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: