java 运行时 Eclipse ArrayIndexOutOfBounds 异常中的 Findbugs

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17259201/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-01 01:28:14  来源:igfitidea点击:

Findbugs in Eclipse ArrayIndexOutOfBounds Exception when running

javafindbugsjava-8

提问by deinocheirus

I just installed (and re-installed) Findbugs in Eclipse Juno and every time I try to run it in any of my projects I get the following error:

我刚刚在 Eclipse Juno 中安装(并重新安装)了 Findbugs,每次我尝试在我的任何项目中运行它时,我都会收到以下错误:

An internal error occurred during: "Finding bugs in <project name>...".
java.lang.ArrayIndexOutOfBoundsException

Googling didn't provide any useful results. Any ideas?

谷歌搜索没有提供任何有用的结果。有任何想法吗?

EDIT: I tried (and probably failed) to install Java 8's test version in Eclipse to try out Java 8's lambdas and other features. Maybe it has something to do with Findbugs not running properly?

编辑:我尝试(并且可能失败)在 Eclipse 中安装 Java 8 的测试版本以试用 Java 8 的 lambdas 和其他功能。也许它与 Findbugs 运行不正常有关?

回答by Andrey Loskutov

FB official release is not yet (2.0.3) compatible with Java 8 class file format.

FB 正式版尚未 (2.0.3) 兼容 Java 8 类文件格式。

However, the perfectly working Eclipse plugin daily build of 3.0.0 version is available from this update site: http://findbugs.cs.umd.edu/eclipse-daily

但是,可从此更新站点获得完美运行的 Eclipse 插件每日版本 3.0.0 版本:http: //findbugs.cs.umd.edu/eclipse-daily

We plan to release 3.0.0 RC1 in the next few days (till the end of the Juni 2014).

我们计划在接下来的几天(直到 Juni 2014 结束)发布 3.0.0 RC1。