Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse 2023-12 erratic behavior with Java 21(Eclipse is behaving unpredictably, showing phantom errors, not always showing errors in project explorer)
Eclipse 2023-12 erratic behavior with Java 21 [message #1868274] Tue, 16 July 2024 17:18 Go to next message
Simon Baker is currently offline Simon BakerFriend
Messages: 21
Registered: July 2009
Junior Member
Using Eclipse 2023-12 for Java Developers, I'm trying to upgrade our Java projects to Java 21 compliance.

Eclipse seems to be acting so erratically it is actually interfering with the task.

Most errors are "[class] cannot be resolved to a type" or a class is in more than one jar.

Adding a missing jar or removing/reorganizing a jar are the most common fixes.

The problem is that Eclipse often will not acknowledge the fix and keep displaying the error, often even after cleaning and rebuilding the project.
Sometimes commenting out the erroneous code does not help, the error sticks to the commented code.

Deleting the erroneous code sometimes causes the error to move to the next line which is perfectly legal.

Sometimes opening Eclipse in the morning shows a raft of errors, which disappear when rebuilding a project that previously had been upgraded and all errors fixed.

Often the Project Explorer does not show errors on branches which actually have errors in some of the classes.

It is difficult to know if a fix is successful or not because Eclipse reports the errors so erratically.

Has anyone else encountered this phenomena? Is there a more stable Eclipse version for upgrading to Java 21 from Java 8
Re: Eclipse 2023-12 erratic behavior with Java 21 [message #1868310 is a reply to message #1868274] Wed, 17 July 2024 07:20 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
You can ask JDT question here:

https://github.com/eclipse-jdt/eclipse.jdt.core/discussions

I would try the 2024-06 release given it's the current and most recent.

Are other technologies involved such as m2e managing your maven classpaths?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:New topic will not post
Next Topic:Eclipse IDE update by sticky version
Goto Forum:
  


Current Time: Sat Dec 07 00:28:07 GMT 2024

Powered by FUDForum. Page generated in 0.07530 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top