Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312566

Summary: b3 projects doesn't compile when 1.5 JVM is present
Product: [Technology] CBI Reporter: Thomas Hallgren <thomas>
Component: CBI p2 Repository AggregatorAssignee: Project Inbox <b3.aggregator-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: henrik.lindberg
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Thomas Hallgren CLA 2010-05-12 05:53:39 EDT
Several b3 projects fail to compile when a 1.5 compliant JVM is installed in Eclipse runtime. The reason for this is that in a strict 1.5 environment, it is not permitted to mark an implemented method with @Override. Only extended method can be marked that way. This was changed in 1.6.

The most commonly used JVMs today are 1.6 and above so most people won't notice this (the 1.6 will automatically be used by the build as "1.5 compliant" although that isn't 100% true).

The solution for this problem is to do see to that the b3 bundles are compatible with both 1.5 and 1.6. Here are the steps to do that:

1. Open the plug-in manifest editor
2. Add Execlution Environment JavaSE-1.6
3. See to that JavaSE-1.6 is at the top.
4. Save the manifest.
5. Click on "Update the classpath settings" just below the EE window.
6. Open the "build.properties" tab.
7 Add the following line:

   jre.compilation.profile = J2SE-1.5

8. Save the build.properties file.

The last step will ensure that the binaries produced by the build (PDE or Buckminster) can run with a 1.5 VM.
Comment 1 Henrik Lindberg CLA 2010-05-14 12:42:24 EDT
Fixed in trunk for projects o.e.b3:
.core
.build.*
.beelang.*
.backend.*

This issue was logged for b3.engine, and the bundles listed above are all of the relevant bundles. Please reopen if the intention was to have more bundles fixed.
Comment 2 Thomas Hallgren CLA 2010-05-14 19:07:10 EDT
Reopening for aggregator. It needs to be fixed there as well.
Comment 3 Thomas Hallgren CLA 2011-07-09 05:32:19 EDT
Fixed in rev 1512.
Comment 4 David Williams CLA 2016-09-16 15:59:11 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.
No change to assignee for resolved and verified bugs.]