Java 1.4 到 Java 5 之间已知的不兼容性
Sun 提供了潜在兼容性问题的列表:http://java.sun.com/j2se/1.5.0/compatibility.html。
在针对 Java 5 运行/测试旧的 1.4 应用程序时,您是否遇到过其他问题(例如,特定的库不再工作......)?
A list of potential compatibility problems is provided by Sun: http://java.sun.com/j2se/1.5.0/compatibility.html.
Have you encountered other problems when running/testing old-1.4-applications against Java 5 (e.g. A specific library no longer working ....)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Java 1.5.0 弃用列表 可能有帮助。
The Java 1.5.0 deprecated list may be of help.
您可以在以下网站上找到所有 JDK 版本(包括 1.4 和 1.5)中向后兼容性问题的替代列表:
JDK-Results,位于 Japitools 主页:
<块引用>
在理想的情况下,每个 JDK 版本都将与之前的版本完全向后兼容。如下表所示,实际情况并非如此...
JDK 的测试结果位于 Java 上游跟踪器:
<块引用>
该服务旨在监控和分析 Java 库的开发。它正在寻找各种库的新版本,并检查它们的向后二进制和源兼容性...
这些结果是通过静态分析工具获得的,可以与官方兼容性说明一起使用(自 Sun/Oracle 1.4.2 以来 J2SE 5.0 中的不兼容性)。
You may discover an alternative list of backward compatibility problems in all versions of JDK including 1.4 and 1.5 at the following web-sites:
JDK-Results at Japitools Home Page:
Test results for JDK at Java Upstream Tracker:
These results were obtained by static analysis tools and can be used together with the official compatibility notes (Incompatibilities in J2SE 5.0 since 1.4.2 from Sun/Oracle).
一般来说,在 1.4 下运行的代码应该在 1.5 下运行。我认为以前不推荐使用的任何方法都没有被删除。然而,错误在不同版本之间得到修复,如果您的应用程序是以依赖于该错误的方式编写的,那么您可能会得到一些略有不同的行为(我在 Swing 应用程序中遇到过这种情况)。
In general, code that runs under 1.4 should work under 1.5. I don't think any previously deprecated methods were even removed. However, bugs are fixed between releases and you might get some slightly different behavior if your application was written in such a way that depended on the bug (I have encountered this with a Swing application).