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
3 comments

On 2007-06-24 20:47:27 +0400, tomL <no_reply@jetbrains.com> said:


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.

<image>


This most probably means the module this code belongs to doesn't have a
JDK assigned properly.

0

Project Settings -> Project JDK

There was incorrect JDK selected here.

0

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:

Project Settings -> Project JDK

There was incorrect JDK selected here.

0

Please sign in to leave a comment.