Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-552

AbstractBufferingOutputProcessor removes processor from the wrong chain in doFinal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • Java 2.1.5
    • Java 2.2.1
    • Java
    • None

    Description

      I've been trying to understand output processors and their chains in the context of some other fixes I'm working on.
      I noticed that AbstractBufferingOutputProcessor.doFinal removes itself from the subOutputProcessorChain, which doesn't seem to make sense.
      I think that should be the outputProcessorChain, which would make much more sense:
      when a buffering output processor is finalized, its job is done and removes itself from the chain.
      Removing itself from the subchain is useless.
      In practice, there is no impact since all existing implementations call doFinal after they're done processing anyway, so it doesnt' really matter what state the output processor chain is in anymore, but I can imagine some theoretical implementations where this will cause a problem.

      Attachments

        1. SANTUARIO-552.patch
          1 kB
          Peter De Maeyer

        Issue Links

          Activity

            People

              coheigea Colm O hEigeartaigh
              peterdm Peter De Maeyer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: