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

"markupStream" field in MarkupException breaks Exception's Serializable contract.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.7
    • 1.4.10, 1.5-M1
    • wicket
    • None

    Description

              private org.apache.wicket.markup.MarkupStream org.apache.wicket.markup.MarkupException.markupStream [class=org.apache.wicket.markup.MarkupStream] <----- field that is not serializable
      

      Exceptions have the contract of being serializable. That means, all their fields have to be serializable; otherwise you break that contract. I think for Wicket especially, it is important to respect and honor that contract. Therefore, MarkupException (or any other Wicket exceptions) should not contain any non-serializable objects in their fields. Either the markupException field should become transient or it should be replaced with a serializable view of it.

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            lhunath Maarten Billemont
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: