Skip to main content



      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 13:18 Go to next message
Eclipse UserFriend
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 03:20 Go to previous message
Eclipse UserFriend
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?
Previous Topic:New topic will not post
Next Topic:Eclipse IDE update by sticky version
Goto Forum:
  


Current Time: Wed May 07 08:52:18 EDT 2025

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

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

Back to the top