Commons Digester
  1. Commons Digester
  2. DIGESTER-14

[digester] Named stacks are not popped at end of processing

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      The method org.apache.commons.digester.Digester.endDocument() pops the main
      stack in a loop, but does not perform the same operation on stacksByName. This
      is inconsistent, and may result in an ever-growing stack if a Digester instance
      is cached and reused (notwithstanding documentation that Digester instances
      should not be reused anyway).
      An alternative to clearing stacksByName in endDocument() would be to do so in
      clear().

      It also would be more consistent (and useful) to have a method
      public Object peek(String stackName, int n);

        Activity

        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Henri Yandell made changes -
        Affects Version/s unspecified [ 12311647 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Component/s Digester [ 12311111 ]
        Key COM-1942 DIGESTER-14
        Project Commons [ 12310458 ] Commons Digester [ 12310471 ]
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 33873 12342094
        Brian Hanafee created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Brian Hanafee
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development