|
|
|
|
|
|
|
|
Re: Xtend generated code uses Java8 API's even though the project is still JavaSE-1.7 [message #1463470 is a reply to message #1463082] |
Thu, 06 November 2014 15:46 |
|
If your plugins must work with Java 7, then compiling them against JDK 8 is a bad idea. This doesn't just apply to the Xtend compiler. It's easy for a developer to accidentally use some method or class that was introduced in Java 8 this way. The only way to ensure compatibility is to compile against your target JDK.
Edit:
I guess the deeper problem is that historically, most Java devs (me included) didn't care much about correct cross compilation. IDEs/build systems usually only gave a mild warning. But Java 8 really introduced a lot of APIs and even broke some things. So it's the first time that the JDK you compile against really matters. I'm afraid you'll have to get used to the idea of installing/providing the JDK that you want to run against.
[Updated on: Thu, 06 November 2014 15:50] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04287 seconds