Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-20

JDK 1.3.1 backport: 1.4 Collections classes should be replaced with 1.3-compliant versions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Version 1
    • None
    • None

    Description

      After looking at various implementations of the 1.4 Collections classes, it looks like jakarta commons-collections has the most going for it--same functionality, well-tested, compatible license.

      The downside is the extra jar--there were too many dependencies to rip out just the classes we need, it quickly lost it's value. The jar itself is 508k.

      This is the gist of the changes:

        • java.util.IdentityHashMap -> collections.IdentityMap - Same functionality, both for keys and values wrt equality testing. Same perf.
        • java.util.LinkedHashMap -> collections.LinkedMap - Same functionality and perf.
        • java.util.LinkedHashSet -> collections.ListOrderedSet.decorate(new HashSet) - Same functionality and perf.

      collections.jar/license.txt live in external/lib and are moved to build/ar/ during the build and dist processes.

      Attachments

        1. collections-patch.zip
          436 kB
          Matt Bishop
        2. Collections.patch
          29 kB
          Matt Bishop
        3. Collections.patch
          29 kB
          Matt Bishop

        Activity

          People

            Unassigned Unassigned
            mattbishop Matt Bishop
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: