java.lang.String vs. String

Answered

After upgrading to 811, I noticed that some of my files have errors
because of strings. For example, when trying to pass two strings into the
StringTokenizer constructor, it gets underlined in red. The error is
something like "StringTokenizer(String, String) cannot be applied to
(java.lang.String, java.lang.String). However, it compiles with no errors.
Has anyone else noticed this, or is it something I'm doing wrong, or
should I submit a request to have it fixed?? I did a search and it looks
like nobody has reported it yet...

thanks,
adam



7 comments
Comment actions Permalink

Nevermind - I found it - #11368.

"Adam Cabler" <adam_cabler@mentor.com> wrote in message
news:b7nb0c$dv7$1@is.intellij.net...

After upgrading to 811, I noticed that some of my files have errors
because of strings. For example, when trying to pass two strings into the
StringTokenizer constructor, it gets underlined in red. The error is
something like "StringTokenizer(String, String) cannot be applied to
(java.lang.String, java.lang.String). However, it compiles with no

errors.

Has anyone else noticed this, or is it something I'm doing wrong, or
should I submit a request to have it fixed?? I did a search and it looks
like nobody has reported it yet...

>

thanks,
adam

>
>
>


0
Comment actions Permalink

Hi Adam, how did you solve this problem? Do you remember that? I got this problem after 16 years lol

0
Comment actions Permalink

Please try File | Invalidate Caches | Invalidate and Restart.

0
Comment actions Permalink

Hi Serge,

Thank you for the quick response! I tried it. It didn't work. The red mark gone after invalidate caches and cache, but when I open the same Java file again, the red line appears again. 

0
Comment actions Permalink

Please share a sample project to reproduce the issue: https://uploads.services.jetbrains.com/ .

0
Comment actions Permalink

I solved the problem! It is not the problem of IDE. Thank you very much! Have a great day!

0

Please sign in to leave a comment.