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

SerializingObjectSizeOfStrategy should warn when unable to serialize the object

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.7
    • 1.4.6, 1.5-M1
    • wicket
    • None

    Description

      The SerializingObjectSizeOfStrategy.sizeof() method will return -1 in the case where it is unable to serialize the object (to determine its size). However, in those cases, the user is unaware that an accurate size could not be determined.

      I think it would be beneficial for a warning to be logged in those cases, that way it still doesn't fail, but the developers can see when their expecations are not being met. I don't think a full stacktrace is warranted, but just the Exception message.

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            cdeal Chuck Deal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: