Bug 583033

Summary: After upgrade to Eclipse 2024-03 AspectJ project stopped compiling under Eclipse
Product: [Tools] AspectJ Reporter: Dmitry Gorodnitsky <dmitry.gorodnitsky>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: Alexander, ma
Version: 1.9.21.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 11   
Whiteboard:
Attachments:
Description Flags
Error on Eclipse startup
none
Compilation error none

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.