Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » 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 #1868271] Tue, 16 July 2024 17:17 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 #1868865 is a reply to message #1868271] Wed, 24 July 2024 05:52 Go to previous message
Erik BrangsFriend
Messages: 55
Registered: February 2010
Member
I don't know about your specific problem and have not encountered it, but I advise you to use a newer version of Eclipse if you can.

In the specific case of Java 21, some plugins that make up Eclipse actually moved to Java 21 source level for Eclipse 2024-06. Therefore I suspect that Eclipse 2024-06 (which requires Java 21 to run) has less bugs with respect to Java 21 support than 2023-12. That said, I haven't tried it.
Previous Topic:Java compiler stalls
Next Topic:How to upgrade eclipse 4.22(2021-12)
Goto Forum:
  


Current Time: Thu Jan 23 05:51:08 GMT 2025

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

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

Back to the top