I think I finally figured out safe (though a little kludgy) Eclipse
setup:
http://objectstyle.org/confluence/display/CAY/Eclipse
In short - use JVM 1.4 as default for the workspace; define
JRE_LIB_15 variable to point to JDK 1.5 lib. Also since we now have
per-project settings in CVS, I checked in code templates from the
"contrib" folder to each project.
Andrus
On Nov 5, 2005, at 4:11 PM, Andrus Adamchik wrote:
> This sounded too simple, and this is because I was wrong. Building
> with JDK 1.5 and setting compiler level to 1.4 correctly reports a
> problem with this code:
>
> List<String> list = new ArrayList<String>();
>
> but not this code:
>
> StringBuilder b = new StringBuilder();
>
> So I had to introduce "test-1_4" build target to the main build
> file. Its main purpose is to allow nightly build script to do an
> extra regression pass using JDK 1.4, detecting bad code, before
> creating a final build with JDK 1.5. But of course this target can
> be used in development as well.
>
This archive was generated by hypermail 2.0.0 : Sun Nov 06 2005 - 04:27:11 EST