【问题标题】:Are newer apache commons libraries compatible with older ones较新的 apache 公共库是否与较旧的库兼容
【发布时间】:2017-10-10 09:37:15
【问题描述】:

具体来说,我感兴趣的是新的 4.x 行 commons-collections 库向后兼容 3.x 版本。

【问题讨论】:

    标签: apache version backwards-compatibility apache-commons-collection


    【解决方案1】:

    来自 4.0 版本的发行说明:

    为了帮助迁移到这个新版本,包已更改为“org.apache.commons.collections4”,因此可以在类路径中同时拥有两个 commons-collections 版本。

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

    这意味着您可以在类路径中包含这两个版本而不会发生名称冲突。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-14
      • 1970-01-01
      • 2012-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-22
      • 1970-01-01
      相关资源
      最近更新 更多