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



0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

me too!

0
Avatar
Permanently deleted user

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

0

Please try File | Invalidate Caches | Invalidate and Restart.

0
Avatar
Permanently deleted user

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

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

0
Avatar
Permanently deleted user

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

0

请先登录再写评论。