奇怪的Eclipse IDE错误javax.annotation.meta.When #Java [英] Strange Eclipse IDE error javax.annotation.meta.When #Java

查看:87
本文介绍了奇怪的Eclipse IDE错误javax.annotation.meta.When #Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下IDE错误,该错误在行内或类的包声明中显示,但不会阻止代码按预期运行或运行.

I get the following IDE error which appears inline or on the package declaration of my classes, but doesn't prevent the code running or working as expected.

我尝试从Glassfish手动下载javax-annotations.jar并将其放在类路径以及JDK外部JAR资源区域中,没有帮助.

I tried manually downloading the javax-annotations.jar from Glassfish and placing that in both the classpath and also on the JDK external JAR resources areas, no help.

类型javax.annotation.meta.When无法解析.它是从所需的.class文件中间接引用的..

该错误出现在我使用Findbugs @NonNull批注的任何地方;使用此批注的任何类均会在IDE的程序包声明行中显示上述消息.但是,该类在Package-Explorer或Navigator视图中显示为无错误.

The error appears anywhere that I use the Findbugs @NonNull annotations; any class which uses this annotation has the above message appear in the IDE on the package declaration line. The class however appears as error-free from the Package-Explorer or Navigator view.

我会很高兴地忽略这一点,但是它破坏了我非常喜欢的Mark-All-Occurences行为,如果有人对我可能错过的事情有任何想法,我将不胜感激!

I would quite happily ignore this, however it breaks the Mark-All-Occurences behaviour which I quite like, if anyone has any ideas on what I might have missed I would appreciate it!

推荐答案

FindBugs jar已包含 jsr-305.jar ,其中包含JSR-305的实现.

The FindBugs jar already contains a jsr-305.jar, which contains an implementation of JSR-305.

上一个问题中的更多信息.

编辑哦,您已经做到了-我什至不知道它也存在于notes.jar中.

Edit Oh, you already did that--I didn't even know it was in annotations.jar as well.

这篇关于奇怪的Eclipse IDE错误javax.annotation.meta.When #Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆