知识点
相关文章
更多最近更新
更多[警告]Java 7有bug,升级需谨慎!
2019-03-27 01:06|来源: 网路
Oracle刚刚正式发布了Java 7。但是Apache PMC(项目管理委员会)成员、Lucene核心开发人员Uwe Schindler却在邮件列表中发出警告:
由于这个版本中包含Hotspot 编译器优化,对循环语句的编译可能出错。Apache的许多项目都可能受影响。有些情况下JVM会崩溃,有些情况下计算结果可能是不正确的,从而使应用本身出错。 |
Schindler强调Apache Lucene和Solr都会受这些bug的影响。由于bug报告时离Java 7的发布日期只剩几天,Oracle公司来不及进行修补。而且Oracle公司的开发人员表示,第一次升级主要针对安全问题,这些bug很可能要到Java 7 Update 2时才能修补。
事实上,Java 6中已经存在这一错误,只不过默认设置没有启用而已。
相关的bug报告和技术细节可以参考Oracle的官方网站:
[1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7070134
[2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7044738
[3] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7068051
转自:http://www.cnblogs.com/mixer/archive/2011/07/29/2448675
相关问答
更多-
你可以摆脱警告如下: package com.example.bugs; public class WeirdInnerClassJavaWarning { private static class InnerClass { protected InnerClass() {} // This constructor makes the warning go away public void doSomething() {} } final pri ...
-
语言规范要求溢出计算的环绕行为,因此它是一个特性。 由于在编译时无法检测到大多数溢出,因此检查可检测到的溢出值是不确定的,特别是因为它们可能是故意的。 The language specification mandates wrap-around behaviour for overflowing computations, so it's a feature. Since most overflows cannot be detected at compile time, it's of dubious ...
-
解决方案是一个很大的黑客,但这是我能找到的全部。 在此处获取信息时,JWS安全管理器没有将RMI代码列为可信代码,因为它是在单独的类加载器下加载的。 因为代码不是来自JNLP,所以JWS不允许它以all-permissions安全性运行。 对此的hacky修复只是用以下内容包装每个查找: Topic topic = null; SecurityManager prevSecurityManager = System.getSecurityManager(); try { System.setSecu ...
-
Java类型安全警告(Java type safety warning)[2023-08-22]
Vector[] wordList = (Vector [])new Vector[29]; Vector [] wordList = (Vector [])new Vector[29]; -
Java RMI警告(Java RMI warning)[2023-02-21]
该警告表明Java编译器的版本(或只是配置)已更改。 正如警告所说,您不应再使用rmic生成存根,而是使用自动生成的动态存根。 如果你只收到警告,你的代码仍然可以工作......没有任何代码很难说。 The warning indicates that the version (or just the configuration) of the Java compiler changed. As the warning says, you should no longer use rmic to gener ... -
如果可以,请查看方法getFriends()的签名。 这应该看起来像 public Iterator
getFriends() 这是您需要放入Iterator参考的类型。 例如,如果该方法是: public Iterator getFriends() 使用: Iterator friendList = currentProfile.getFriends(); Please looks at the signature of the method ... -
泛型和Java警告(Generics and Java warning)[2023-10-02]
注意你的join方法的返回类型: public staticPredicate join(final Predicate p1, final Predicate p2) 您正在使用原始类型,并因此发出警告。 将其更改为: public static Predicate join(final Predicate p1, final Predicate p2) Notice the return type of your join method: public ... -
经过很多时间的努力,我发现只有一种方法可以使用Mule 3.5执行它:直接在数据库连接器中执行过程的所有句子,因此根本不需要任何程序。 它远不那么干净,但是我发现的唯一方法。 After struggling with this a lot of time I have found only one way to perform it with Mule 3.5: executing all the sentences of the procedure directly inside the databas ...
-
这是lint中的错误( https://issuetracker.google.com/69366129 )。 3.1金丝雀5已修复。 This is a bug in lint (https://issuetracker.google.com/69366129). It has been fixed for 3.1 Canary 5.
-
看来这是用7u55更新修复的。 7u55错误修复 : JDK-8031579部署webstart Spurious Missing Manifest权限属性警告启动版本化Java Web Start应用程序时 It appears this was fixed with 7u55 update. 7u55 Bug fixes: JDK-8031579 deploy webstart Spurious Missing Manifest Permissions Attribute Warning When La ...