Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347888 - [releng] Build fails after changing execution environment to Java 1.5
Summary: [releng] Build fails after changing execution environment to Java 1.5
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Rüdiger Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 04:41 EDT by Rüdiger Herrmann CLA
Modified: 2011-06-01 08:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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