Eclipse compiler warnings
Hi,
I'm using eclipse compiler instead of javac because it gives better errors and compiles incrementally.
The problem i have is that despite having annotation such as @SuppressWarnings("rawtypes"), @SuppressWarnings({"unchecked"}). The compiler seems to ignore those annotations and I'm having endless stream of errors.
For example the following statement:
@SuppressWarnings("rawtypes")
Pair other = (Pair) obj;
Produces the following errors:
Warning:(99, 9) java: *.Pair is a raw type. References to generic type *.Pair<E,F> should be parameterized
Warning:(99, 23) java: *.Pair is a raw type. References to generic type *.Pair<E,F> should be parameterized
(I removed the full qualified name)
Any ideas?
P.S: Please note I'm using eclipse 4.6.3 version and not the bundled 4.6.2, as that version have some bugs. But the same happened also on 4.6.2
Thanks you!
Please sign in to leave a comment.
Does it work correctly in Eclipse vs IntelliJ IDEA? If the issue is specific to IntelliJ IDEA, please file a bug at https://youtrack.jetbrains.com/issues/IDEA and attach a small sample project to reproduce it.
Yes, this work correctly in Eclipse.
I added the bug to issue tracker with a sample project:
https://youtrack.jetbrains.com/issue/IDEA-184417
Thank you
It appears to be a known issue and it's something that cannot be fixed in IntelliJ IDEA (third-party problem), you can try the workaround mentioned at https://youtrack.jetbrains.com/issue/IDEA-121772#focus=streamItem-27-2408713-0-0.
Thank you, the workaround is good enough for me.