Community
Participate
Working Groups
To reproduce: * Using Java 7 * Clone eclipse.jdt.core repository * cd eclipse.jdt.core/org.eclipse.jdt.core.tests.compiler * mvn clean verify -Pbuild-individual-bundles -DskipTests=false -Dmaven.test.skip=false Tycho will use org.eclipse.jdt.annotation 2.0.0 in target-platform. org.eclipse.jdt.annotations 2.0.0 has BREE set to JavaSE-1.8, so it cannot work on Java 7. Consequently, the test will fail to start and surefire instance log will report this reason. Instead, I would have expected Tycho to select org.eclipse.jdt.annotation 1.1.100, which is available in the referenced repositories and compatible with my Java runtime.
Not sure but this may be because p2 does not take BREE into account as a constraint when resolving.
(In reply to Jan Sievers from comment #1) > Not sure but this may be because p2 does not take BREE into account as a > constraint when resolving. That's indeed a highly possible reason. Are you aware of any discussion/bug report on this topic? I just checked and p2 doesn't even add the BREE as a <requires> in its metadata. It would IMO be a good addition.
Ok, I found that bug 346174 tracks a similar issue at p2 level.
@Mickael is this still an issue? Should we try to ping the P2 people to finally fix this?
(In reply to Christoph Laeubrich from comment #4) > @Mickael is this still an issue? I didn't face this issue for a while, so I guess we can stop caring. > Should we try to ping the P2 people to finally fix this? Pinging people doesn't necessarily help at resolving issues. Providing patches does ;)