Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 464304 - Build for Java 7 by default in Tycho 0.23.0
Summary: Build for Java 7 by default in Tycho 0.23.0
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Martin Schreiber CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 463433
Blocks:
  Show dependency tree
 
Reported: 2015-04-09 10:37 EDT by Tobias Oberlies CLA
Modified: 2021-04-28 16:51 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Oberlies CLA 2015-04-09 10:37:56 EDT
Due to bug 463433, it became harder to set up a build that checks strict JavaSE-1.6 compatibility. Since Java 6 can no longer be used to run Tycho, you'd need to set up special runtime libraries for the compilation ("BREE libs") and/or toolchains for the test execution to do this.

Therefore it probably makes sense to change the default execution environment and compiler source/target levels in Tycho to 1.7.
Comment 1 Jan Sievers CLA 2015-04-10 03:35:18 EDT
those who care about strict API compatibility set up BREE libs for all EEs anyway and always declare a BREE.
You can't really expect to have strict API compatibility checks without using toolchains (unless you happen to use the same BREE for all your bundles and this happens to be at least the minimum required to run Tycho builds).

But thinking about it, I have a different argument for changing the default EE:

If you build using Java 7, you expect Java 7 packages to be resolvable by p2.
Comment 2 Tobias Oberlies CLA 2015-04-13 05:53:13 EDT
+1 from me for doing this change for 0.23.0.
Comment 3 Martin Schreiber CLA 2015-04-13 09:38:17 EDT
Changes for Tycho Core:
https://git.eclipse.org/r/#/c/45443/

Changes for Tycho Extras:
https://git.eclipse.org/r/#/c/45636/