Community
Participate
Working Groups
Migrating to Java 8 allows us to improve the readability of our tests, e.g., instead of: context.set("bar", new IContextFunction() { @Override public Object compute(IEclipseContext context, String contextKey) { return "baz1"; } }); We can write context.set("bar", (IContextFunction) (context1, contextKey) -> "baz1");
New Gerrit change created: https://git.eclipse.org/r/48876
(In reply to Eclipse Genie from comment #1) > New Gerrit change created: https://git.eclipse.org/r/48876 David, this fails on our Gerrit build validation with the following error message: Resolution errors: Bundle org.eclipse.e4.core.tests - Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Any idea why this fails?
(In reply to Lars Vogel from comment #2) > (In reply to Eclipse Genie from comment #1) > > New Gerrit change created: https://git.eclipse.org/r/48876 > > David, this fails on our Gerrit build validation with the following error > message: > > Resolution errors: > Bundle org.eclipse.e4.core.tests - Missing Constraint: > Bundle-RequiredExecutionEnvironment: JavaSE-1.8 > > Any idea why this fails? Off hand I suspect you are using Java 7 to build/and run the tests?
(In reply to David Williams from comment #3) > Off hand I suspect you are using Java 7 to build/and run the tests? Thanks, the job was configured to use Java 7. I changed that, but it is still failing. Mikael, can you help with this issue? https://hudson.eclipse.org/platform/job/eclipse.platform.runtime-Gerrit/80/console reports the following resolution errors: Bundle org.eclipse.e4.core.tests - Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Found the error. build.properties specifies jre.compilation.profile = JavaSE-1.7 Is this actually still required to configure? AFAIK the BREE is taking if this setting is not present. https://wiki.eclipse.org/Tycho/Execution_Environments
*** This bug has been marked as a duplicate of bug 474642 ***