Tycho 4.x - Compiler error "The method asList(T...) of Arrays.." #2931
-
Quick question in case anybody knows. I'm trying to update a huge project to Tycho 4.0.3. For one of our test plugins I get the following compile error:
The Manifest.MF of the plugin contains:
I'm using the BREE configuration in the tycho-compiler plugin:
I have a toolchains.xml with JavaSE-11 and JavaSE-1.8. The Runtime for Maven 3.9.5 is Java 17.0.5. The same xml configuration works fine with tycho 2.0.5. I assume the error is rooted in the jdt compiler somewhere which tycho 4.x uses (using Eclipse Compiler for Java(TM) 3.35.0.v20230814-2020). Does anyone have an idea where I can look? Struggling with this for quite some time now. Maybe I'm missing a compiler flag? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can try to use an older ECJ version
If you identified the compiler version where the issue started to show up, it would help to ask at the JDT project for further guidance: |
Beta Was this translation helpful? Give feedback.
-
Ok I found the (stupid) error. In the root pom we had:
Let's all guess what So removing
fixed it. |
Beta Was this translation helpful? Give feedback.
Ok I found the (stupid) error. In the root pom we had:
Let's all guess what
${java.home}
is when I run the maven build with Java 17 Runtime -.- So we tried to compile wi…