Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    collections4 dependency

    SmartClient Version: SNAPSHOT_v11.1d_2017-02-23/Enterprise Development Only (built 2017-02-23)

    Hello, I just saw new dependency in the DataToools class, org.apache.commons.collections4.map.LinkedMap

    is it correct?

    If yes, I saw that in the SDK there are both commons-collections-3.2.2.jar and commons-collections4-4.1.jar. Are they both necessary?


    #2
    Yes, both are necessary and safe to run side by side. Collections 4.x was introduced with JDK 1.5 (so quite a while ago) and we're seeing third party devs finally starting to drop Collections 3.x in favor of 4.x The current stable Apache POI 3.15 is one such library. At present there's a divergence where some libs still rely on 3.x (Velocity for example) and some on 4.x. Because 4.x breaks binary compatibility with 3.x, the commons-collections folks put it in its own namespace (org.apache.commons.collections4 vs org apache.commons.collections). As a result it's perfectly safe to have both in your classpath.

    Thanks for the question - we'll add a note to our java dependency help topic to make sure this is clear in the docs.

    Comment


      #3
      perfect, thank you very much for the clarification.

      Comment

      Working...
      X