|
Re: Weird invalid Java error [message #1859705 is a reply to message #1859703] |
Thu, 22 June 2023 23:09 |
|
Are you compiling against the JRE you think you are? toList() was only added in Java 16. If you recently changed from only having a Java 17 runtime in your workspace to adding a genuine Java 11 runtime, it could lead to this.
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
|
|
Re: Weird invalid Java error [message #1859734 is a reply to message #1859721] |
Fri, 23 June 2023 16:23 |
Missing name Mising name Messages: 105 Registered: December 2010 |
Senior Member |
|
|
Ok, now it's getting REALLY REALLY annoying.
I pulled the latest code and started Eclipse this morning. (the 1 line of code change was NOT in any of the relevant files.)
Eclipse came up, refreshed - and the error was gone.
I've been having Eclipse complaining about perfectly valid code, clean, shutdown, clean - and the problem is gone, happening at least once a week.
This is the first time it took being shutdown overnight to fix it.
Note that my system did NOT reboot last night.
Also, note that I did a ctrl-shift-T, and while "Stream" is defined by several different jars, there was only 1 from a JVM. (17)
I'm starting to wonder if all this is related to the "Eclipse can't guess/find the import" issue that I've seen. (and I see has been mentioned by other people.)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03530 seconds