Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4264

JavaSerializer Does Not Call SerializableChecker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0, 1.5.1, 1.5.2, 1.5.3
    • 1.5.4, 6.0.0-beta1
    • wicket
    • None

    Description

      In the new JavaSerializer class, it has a CheckerOutputStream which extends ObjectOutputStream. The intent is to use the ObjectOutputStream.writeObjectOverride() support. However, the writeObjectOverride() method is never called unless you use the no-arg constructor from the ObjectOutputStream class (which sets the "enableOverride" flag to true). The CheckerOutputStream uses the ObjectOutputStream(OutputStream) constructor in its constructor. Worse yet, even if the writeObjectOverride() method were to be called, it would create a StackOverflowError because it's calling the super.writeObject() method which is what called it in the first place (infinite recursion).

      Attachments

        1. WICKET-4264.patch
          4 kB
          James Carman

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            jwcarman James Carman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: