Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-134

[configuration] SubsetConfiguration.clear() throws a ConcurrentModificationException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      The default implementation of the clear() method in AbstractConfiguration
      doesn't work for a SubsetConfiguration applied to a BaseConfiguration. The
      TransformIterator created by the getKeys() in SubsetConfiguration doesn't like
      the concurrent modification of the underlying collection in the clear() method.

        Activity

        Emmanuel Bourg created issue -
        Hide
        Emmanuel Bourg added a comment -

        Fixed, clear() in AbstractConfiguration now first tries to use the remove method
        of the Iterator to avoid the ConcurrentModificationException.

        Show
        Emmanuel Bourg added a comment - Fixed, clear() in AbstractConfiguration now first tries to use the remove method of the Iterator to avoid the ConcurrentModificationException.
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 33925 12342101
        Henri Yandell made changes -
        Key COM-1949 CONFIGURATION-134
        Component/s Configuration [ 12311107 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Affects Version/s Nightly Builds [ 12311648 ]
        Project Commons [ 12310458 ] Commons Configuration [ 12310467 ]
        Henri Yandell made changes -
        Affects Version/s Nightly Builds [ 12311710 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Emmanuel Bourg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development