java.lang.String vs. String
已回答
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
请先登录再写评论。
Nevermind - I found it - #11368.
"Adam Cabler" <adam_cabler@mentor.com> wrote in message
news:b7nb0c$dv7$1@is.intellij.net...
errors.
>
>
>
>
me too!
Hi Adam, how did you solve this problem? Do you remember that? I got this problem after 16 years lol
Please try File | Invalidate Caches | Invalidate and Restart.
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.
Please share a sample project to reproduce the issue: https://uploads.services.jetbrains.com/ .
I solved the problem! It is not the problem of IDE. Thank you very much! Have a great day!