"literal".equalsIgnoreCase problem.

I get this wierd problem in the EDITOR.

When I use equalsIgnoreCase method on string literal, IDEA complains and says "Can not resolve 'equalsIgnoreCase'"

For example
"true".equalsIgnoreCase(someString);
results in the same complain.

Compilation is successful, its just in the EDITOR, IDEA assumes that method is not available, so complains.

It works fine if its String variable instead of literal.

2 comments
Comment actions Permalink

Works fine for me and I would imagine everyone else or we'd be seeing a lot
more posts about it. What version of IDEA are you using?

"Ghazenfer Mansoor" <gmansoor@defywire.com> wrote in message
news:15421200.1080688370510.JavaMail.itn@is.intellij.net...

I get this wierd problem in the EDITOR.

>

When I use equalsIgnoreCase method on string literal, IDEA complains and

says "Can not resolve 'equalsIgnoreCase'"
>

For example
"true".equalsIgnoreCase(someString);
results in the same complain.

>

Compilation is successful, its just in the EDITOR, IDEA assumes that

method is not available, so complains.
>

It works fine if its String variable instead of literal.

>
>


0
Comment actions Permalink

Most likely this means your JDK isn't configured correctly, particularly if other system calls can't be found. Look under Settings/Paths/Libraries, and see what the JDK is set to.

--Dave Griffith

0

Please sign in to leave a comment.