Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build environment needs to enforce Java version 1.6 #1

Open
chreex opened this issue Jun 30, 2016 · 1 comment
Open

Build environment needs to enforce Java version 1.6 #1

chreex opened this issue Jun 30, 2016 · 1 comment
Assignees
Labels

Comments

@chreex
Copy link
Contributor

chreex commented Jun 30, 2016

hu.qgears.rtemplate.ast.AbstractAST$OffsetComparator calls Integer.compare(int x, int y), which is present from Java 1.7, whereas Bundle-RequiredExecutionEnvironment: JavaSE-1.6 is set in the MANIFEST.MF. As a consequence, Eclipse complains that the method is undefined if a real Java 6 execution environment is assigned to the JavaSE-1.6 execution environment. (Otherwise, if Java 7 or Java 8 JDK is assigned to JavaSE-1.6, it does not.)

@chreex chreex added the bug label Jun 30, 2016
@pulinyul pulinyul changed the title Execution environment needs to be updated to JavaSE-1.7 Build environment needs to enforce Java version 1.6 Jun 30, 2016
@pulinyul
Copy link
Contributor

For now, I have bumped the execution environment version of hu.qgears.rtemplate to Java 7 so the new version can be built everywhere.
For a proper solution, we not only need to enforce source and target version on the compiler (see: https://eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html#source and https://eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html#target) but also have to have all the required versions of JDKs installed and configured using: https://eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html#useJDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants