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

Bug 347888

Summary: [releng] Build fails after changing execution environment to Java 1.5
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Rüdiger Herrmann <ruediger.herrmann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Rüdiger Herrmann CLA 2011-06-01 04:41:55 EDT
The automated build at eclipse.org fails with compiler errors after changing the execution environment to Java 1.5 and makeing some changes that use generics. I.e.
  styleRules = styleRules.clone(); // without cast to StyleRule
It seems that the compiler still uses compliance level 1.4 or lower.

See here for the build result: https://hudson.eclipse.org/hudson/job/rap-runtime/51
Comment 1 Rüdiger Herrmann CLA 2011-06-01 08:28:29 EDT
Added the following the build.properties file of all bundles that were changed to have J2SE-1.5 as the execution environment:
javacSource = 1.5
javacTarget = 1.5
jre.compilation.profile = J2SE-1.5

The jre.compilation.profile was not strictly necessary to fix the problem at hand. It was added to be able to configure the build to compile against a JRE that can be defined in the builds build.properties file in the future (if desired).
See here for documentation: http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_compilation_env.htm