Skip to main content

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

I've just tried, and it seems to have worked. We still have build
failures but these seem to be xtend related, compilation of the
JavaSE-1.8 artifacts is working now.

This is the bug report:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=564423


Kind regards,

Alexander

Am 18.06.20 um 14:01 schrieb Christoph Läubrich:
> Do you have the chance to download the source, change the line and try
> with a recompiled version? Beside this I think the exception itself
> qualifies for a bug sou you can open a Buguilla Bug for this?
>
> Am 18.06.20 um 13:46 schrieb Alexander Aumann:
>> 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
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/tycho-user
>>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/tycho-user


Back to the top