将 commons DBCP 从 1.2 升级到 1.4,我应该害怕吗?

发布于 2024-09-10 09:29:24 字数 82 浏览 4 评论 0原文

我想知道是否存在任何重大的已知问题。升级我的项目中的 jar 后,一切都编译好了。我并没有在发行说明中看到任何让我不寒而栗的内容,但我想仔细检查一下。

I was wondering if there were any big known issues out there. After upgrading the jar in my project, everything compiled. I didn't really see anything in the release notes that made me shudder, but I want to double check.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

森林很绿却致人迷途 2024-09-17 09:29:24

事实上,在沉寂了近3年多之后(1.2.2版本已于2007年4月4日发布),Apache Commons DBCP终于摆脱了休眠状态,并于2010年2月14日发布了1.3和1.4版本。来自发行说明

此版本包括新功能
以及错误修复和增强功能

一些错误修复改变了语义(例如
连接关闭现在是幂等的)。
DBCP 的 1.3 和 1.4 版本分别是
从相同的来源构建。版本
1.4 支持 JDBC 4,因此需要 JDK 1.6。在 JDK 1.4-1.5 下运行的应用程序必须使用 DBCP 1.3。在 JDK 1.6 下运行的应用程序
应使用 DBCP 1.4。以外
支持 JDBC 中添加的方法
4、没有什么新的或不同的
在 DBCP 1.4 与 DBCP 1.3 中。名单
自 1.2.2 以来的以下更改适用于
1.3 和 1.4 版本。其他
比与添加相关的一个问题
JDBC 4 支持 (DBCP-191),所有错误
修复或新功能包含在
DBCP 1.3 和 1.4

有关详细信息,请参阅 1.4 的更改日志详尽的更改列表,但从全球来看,这个版本确实是一件好事,DBCP 有一些确实需要修复的令人讨厌的错误。

关于兼容性,Commons 组件的一般策略是向上兼容,这就是发布两个版本的原因(请参阅 此讨论)。我的观点是升级到 1.4 或 1.3 不会有任何问题。但请记住,1.4 无法与较旧的 JVM 一起使用。

Actually, after near than 3 years of inactivity (version 1.2.2 has been release the 2007-04-04), Apache Commons DBCP has finally been taken out of dormancy and versions 1.3 and 1.4 have been released the 2010-02-14. From the release notes:

This release includes new features as
well as bug fixes and enhancements
.
Some bug fixes change semantics (e.g.
connection close is now idempotent).
The 1.3 and 1.4 releases of DBCP are
built from the same sources
. Version
1.4 supports JDBC 4, so requires JDK 1.6. Applications running under JDK 1.4-1.5 must use DBCP 1.3. Applications running under JDK 1.6
should use DBCP 1.4. Other than
support for the added methods in JDBC
4, there is nothing new or different
in DBCP 1.4 vs. DBCP 1.3. The list of
changes below since 1.2.2 applies to
both the 1.3 and 1.4 release. Other
than the one issue related to adding
JDBC 4 support (DBCP-191), all bug
fixes or new features are included in
both DBCP 1.3 and 1.4

See the change log for 1.4 for an exhaustive list of changes but globally, this release is really a good thing, DBCP has/had some nasty bugs that really need to be fixed.

Regarding compatibility, the general policy for Commons component is to be upward compatible, which is somehow why two versions were released (see this discussion). My point is that nothing should break by upgrading to 1.4 or 1.3. But keep in mind that 1.4 won't be usable with older JVMs.

冷了相思 2024-09-17 09:29:24

您可能有兴趣查看 Apache DBCP 的兼容性测试结果。向后二进制和源兼容性存在几个问题,因此此更新可能会破坏某些应用程序。

You might be interested to see compatibility test results for Apache DBCP. There are several issues in backward binary and source compatibility, so this update may break some apps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文