[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Can't compile in IntelliJ with OpenJDK 9

I expect this is an issue about finding the jar containing Object. It is located a little differently on Java9 but given that your Ant builds works fine with OpenJDK9 (I presume the same, hmm. I might be able to add some diagnostics to a AJ9 build that would tell us where it is having trouble locating the jar containing Object, if no-one can help you with the intellij setup (I'm not an active intellij user) - did you try stack overflow with that question?


On Sun, 19 Aug 2018 at 02:17, Adam Retter <adam.retter@xxxxxxxxxxxxxx> wrote:
We are using AspectJ 1.9.1.

We compile our code in two ways - 1) using Apache Ant 1.10.2 and, 2)
using IntelliJ 2008.2 Pro.

In IntelliJ when our project is set to use OpenJDK 8 as the SDK, all
compiles just fine and we are happy. However, as soon as we change the
SDK to OpenJDK 9 ( we get the following compile error:

Error: Module 'eXist-db' production:
org.aspectj.bridge.AbortException: can't determine superclass of
missing type java.lang.Object

In IntelliJ we have the AspectJ plugin installed, and the Java
Compiler is set to AJC, the following checkboxes are all checked on:
1. Use '--release' option for cross-compilation (Java 9 and later)
2. Generate debug info
3. Delegate to javac

Our Module in IntelliJ has the AspectJ option set for "Post-compile weave mode".

Can someone help us to get this compiling in IntelliJ with OpenJDK 9 please?
For comparison - our Ant build works just fine with AspectJ on OpenJDK 9.

Adam Retter

skype: adam.retter
tweet: adamretter
aspectj-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit