Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Compilation issue after moving to tycho 2.1.0

Reading that solved my issue : https://wiki.eclipse.org/Tycho/Release_Notes/2.1
Setting that <deriveReleaseCompilerArgumentFromTargetLevel>false</deriveReleaseCompilerArgumentFromTargetLevel> does the trick.
If someone can explain me please ? 
My executionEnv is set to JavaSE-11 source & target level set to 11.


De : stephane.fournier@xxxxxxxxxxxxxxx
À : tycho-user@xxxxxxxxxxx
Sujet : [tycho-user] Compilation issue after moving to tycho 2.1.0
Date : 14/11/2020 13:16:26 Europe/Paris

Hi,
With Tycho 2.0.0 my app is compiled OK.

Source and target level set to 11 and ExecutionEnv set to JavaSE-11.

But when changing in my pom the tycho version to 2.1.0, I got compilation errors on standard Java classes. Reverting to 2.0.0, everything is fine again.

Does anyone have similar issues ?

Examples of errors:

final Field field = clazz.getDeclaredField(key);

[ERROR]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^

[ERROR] Type mismatch: cannot convert from Field to Field


currentThread.setContextClassLoader(log4jConfigurer.getClass().getClassLoader());

[ERROR]               ^^^^^^^^^^^^^^^^^^^^^

[ERROR] The method setContextClassLoader(java.lang.ClassLoader) in the type Thread is not applicable for the arguments (java.lang.ClassLoader)



  URL url = "">

[ERROR]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[ERROR] Type mismatch: cannot convert from URL to URL

_______________________________________________
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