Xtend 2.11.0 with Java 6/7

107 views
Skip to first unread message

chrs wk

unread,
Mar 16, 2017, 8:41:41 AM3/16/17
to Xtend Programming Language
Hi

It seems like all the Xtext/Xtend JARs of release 2.11.0 are compiled with Java 8 (compared to Java 6 for 2.10.0). As far as I can tell, this makes building our modules for Java 6/7 impossible (Android). I can't find any info on this change in the release notes, so I'm not sure if this was done on purpose?

Thanks,
Chris

chrs wk

unread,
Mar 16, 2017, 8:44:14 AM3/16/17
to Xtend Programming Language
Oh, seems like this is mentioned in the Xtext 2.11.0 release notes: https://www.eclipse.org/Xtext/releasenotes.html

-Chris

Sven Efftinge (sven@efftinge.de)

unread,
Mar 16, 2017, 10:08:59 AM3/16/17
to xtend...@googlegroups.com
We should rebuild the runtime dependencies for Java 6.
https://github.com/eclipse/xtext-extras/issues/124
The compiler will require Java 8 though.

--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

chrs wk

unread,
Jul 18, 2017, 4:23:36 AM7/18/17
to Xtend Programming Language
Seems like it's the same deal with 2.12.0. Is there any plan to continue support for (at least) Java 7 with the compiler?

-Chris
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.

Christian Dietrich

unread,
Jul 19, 2017, 1:17:34 AM7/19/17
to Xtend Programming Language
Hi,

can you comment on https://github.com/eclipse/xtext-lib/issues/45
and give some analysis.

i understood the code is compiled as java 6 but uses java 8 api
can you confirm this?

chrs wk

unread,
Jul 27, 2017, 2:55:37 PM7/27/17
to Xtend Programming Language
So after fidling around with my build some more, I was able to make it work by building (as expected) my libraries with JDK 8 (`1.7` for source/target) and using the `22.0-android` version of Guava in the Android build instead of the regular one.

I can't really comment on the issue of "java 6 code with java 8 api ", haven't run into that so far.

-Chris
Reply all
Reply to author
Forward
0 new messages