Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Compiling with BREE JavaSE-11

Hi everyone,

I am having trouble getting Tycho to compile our project when we update
some bundles to require JavaSE-11.

The build both contains bundles with BREE JavaSE-1.8 and some with
JavaSE-11.


We configure the compiler to <useJdk>BREE</useJdk> (and have the
corresponding toolchains configured)


Using tycho 1.7.0 this lead to errors in the JavaSE-11 bundles:

"option -bootclasspath not supported at compliance level 9 and above"

(described here, I guess:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=548999).


So I tried using the current Tycho 2.0.0-SNAPSHOT


Now, however, I get this trace for the JavaSE-1.8 bundles:

Caused by: java.lang.NumberFormatException: For input string: "1.8"
    at java.lang.NumberFormatException.forInputString
(NumberFormatException.java:65)
    at java.lang.Integer.parseInt (Integer.java:652)
    at java.lang.Integer.parseInt (Integer.java:770)
    at
org.eclipse.jdt.internal.compiler.impl.CompilerOptions.releaseToJDKLevel
(CompilerOptions.java:850)
    at org.eclipse.tycho.compiler.jdt.JDTCompiler.compileInProcess
(JDTCompiler.java:362)
    at org.eclipse.tycho.compiler.jdt.JDTCompiler.performCompile
(JDTCompiler.java:121)


I assume this is due to the jdt.prefs compiler source/compliance level
being "1.8" in that case.

My guess is that in the change for the original bug
(https://git.eclipse.org/r/#/c/148490/9/tycho-compiler-jdt/src/main/java/org/eclipse/tycho/compiler/jdt/JDTCompiler.java):

lines 360 and following, instead of "releaseToJDKLevel" maybe
"versionToJdkLevel" should be used?


However, I could very well be wrong here and everything should work just
fine with Tycho 1.7. Any help or hints appreciated.

Kind regards,
Alexander


Back to the top