将 commons DBCP 从 1.2 升级到 1.4,我应该害怕吗?
我想知道是否存在任何重大的已知问题。升级我的项目中的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实上,在沉寂了近3年多之后(1.2.2版本已于2007年4月4日发布),Apache Commons DBCP终于摆脱了休眠状态,并于2010年2月14日发布了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:
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.
您可能有兴趣查看 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.