IntelliJ idea not recognizing new method that I add after moving from jdk 1.8 to 17
Answered
I updated the JDK on my work station to 17.0
And update the SDK in the project structure as well.
When I add new methods and trying to use them in the debug + evaluate get:
"No such instance method"
When I try to use them in "Run" it just skips those methods.
When I click on the projection I can repair IDE but nothing happens when I press it.
I'm using the most updated version of IntelliJ
Please sign in to leave a comment.
Hello,
Do you see any errors/warning on compiling/building project?
Nothing.
I tried to delete the catch and clean everything - it didn't worked either.
I refactor some classes no error on compilation and build but when I tried to run the project it didn't found the class (with the new name and with the old name).
In the end I just deleted the project complete and redownload it from our source code.
My guess is some odd bug with IntelliJ IDEA.
Does it work fine after redownloading?
Hi,
It is working now.
Seems like there was an issue with the indexing after updating from JDK 1.8 to 17.0.3.
It was not able to index and recompile the new code.
The odd thing is that no error were found or displayed.
Thanks for information! We'll check the issue on our side.