[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspectj-users] Can't compile in IntelliJ with OpenJDK 9
Okay Andy thanks,
As suggested, I have now also posted the question to StackOverflow -
I don't think the problem is directly with IntelliJ as it compiles our
Aspects just fine on OpenJDK 8. Could it be the case, that IntelliJ
needs to pass different arguments to ajc when using OpenJDK 9? I don't
know what arguments it passes currently as this is not shown.
On Mon, 20 Aug 2018 at 23:59, Andy Clement <andrew.clement@xxxxxxxxx> wrote:
> 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 220.127.116.11), 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 (18.104.22.168) 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
> aspectj-users mailing list
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit