Bug 583033 - After upgrade to Eclipse 2024-03 AspectJ project stopped compiling under Eclipse
Summary: After upgrade to Eclipse 2024-03 AspectJ project stopped compiling under Eclipse
Status: CLOSED WONTFIX
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.9.21.1   Edit
Hardware: PC Windows 11
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-17 14:04 EDT by Dmitry Gorodnitsky CLA
Modified: 2024-03-18 08:11 EDT (History)
2 users (show)

See Also:


Attachments
Error on Eclipse startup (28.42 KB, image/png)
2024-03-17 14:04 EDT, Dmitry Gorodnitsky CLA
no flags Details
Compilation error (58.57 KB, image/png)
2024-03-17 14:05 EDT, Dmitry Gorodnitsky CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Gorodnitsky CLA 2024-03-17 14:04:38 EDT
Created attachment 289311 [details]
Error on Eclipse startup

After upgrade to Eclipse 2024-03 AspectJ project stopped compiling under Eclipse
Tried to reinstall and start from scratch. Nothing related to AJDT is working.
Compilation from command line using Gradle working fine.

On Eclipse startup getting following error:

An internal error occurred during: "Initialize CompilationUnit Manager".
class org.eclipse.ajdt.core.javaelements.AspectJMemberElement overrides final method org.eclipse.jdt.internal.core.JavaElement.hashCode()

On clean build getting exception popup:

java.lang.ClassCastException
at org.eclipse.ajdt.internal.core.ajde.CoreCompilerConfiguration.getJavaOptionsMap(CoreCompilerConfiguration.java:102)
at org.aspectj.ajde.core.internal.AjdeCoreBuildManager.getFormattedOptionsString(AjdeCoreBuildManager.java:167)
at org.aspectj.ajde.core.internal.AjdeCoreBuildManager.performBuild(AjdeCoreBuildManager.java:95)
at org.aspectj.ajde.core.AjCompiler.build(AjCompiler.java:91)
at org.eclipse.ajdt. ... avaNature and org.eclipse.jdt.internal.core.JavaProject are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @3351063b)
Comment 1 Dmitry Gorodnitsky CLA 2024-03-17 14:05:54 EDT
Created attachment 289312 [details]
Compilation error
Comment 2 Matheis D CLA 2024-03-18 04:47:06 EDT
We are also affected by what you describe
but i fear nobody will come here to this place anymore?!
therefore i have created an issue here:
https://github.com/eclipse-aspectj/aspectj/issues/296
Comment 3 Matheis D CLA 2024-03-18 05:12:00 EDT
duplicate here - see https://github.com/eclipse-aspectj/ajdt/issues/49
Comment 4 Alexander Kriegisch CLA 2024-03-18 08:11:58 EDT
This bug tracker is deprecated. https://github.com/eclipse-aspectj/ajdt/issues/49 is the right bug to subscribe to.