Strange editor warnings (6.0.5)
Hello,
can anybody explain me why IDEA considers the code on the attached screenshot invalid?
Is it some inspection feature? (how to turn it off?)
This code is 100% valid and compiles well.
IDEA 6.0.5 (6.0.4 was ok)
Thank you.
Attachment(s):
shot2.png
Please sign in to leave a comment.
On 2007-06-24 20:47:27 +0400, tomL <no_reply@jetbrains.com> said:
This most probably means the module this code belongs to doesn't have a
JDK assigned properly.
Project Settings -> Project JDK
There was incorrect JDK selected here.
I also once fell in this trap and have helped colleagues with this problem much more than once.
IMHO this shows a shortcoming of Idea: How about implementing some heuristics that give a better
error message and possibly even a quick fix?
tomL wrote: