milosdju
milosdju

Reputation: 803

Are newer apache commons libraries compatible with older ones

Specifically, I am interested are new line 4.x commons-collections library backward compatible with 3.x version.

Upvotes: 1

Views: 1125

Answers (1)

Raúl MB
Raúl MB

Reputation: 66

From the release notes for 4.0 version:

To help with the migration to this new version, the package has changed to "org.apache.commons.collections4", thus it is possible to have both commons-collections versions in the classpath.

Source: https://commons.apache.org/proper/commons-collections/release_4_0.html

This means that you can include both versions in your classpath without name collisions.

Upvotes: 5

Related Questions