Syntax
Syntax

Reputation: 2197

Strange Eclipse IDE error javax.annotation.meta.When #Java

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.

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.

The type javax.annotation.meta.When cannot be resolved. It is indirectly referenced from required .class file.

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.

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!

Upvotes: 5

Views: 4901

Answers (1)

Dave Newton
Dave Newton

Reputation: 160211

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

More info in this previous question.

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

Upvotes: 1

Related Questions