I have a strange problem with Eclipse Galileo.
I set Java 1.6 as my JRE. On this line of code
List templates = new ArrayList ();
I see
What List are you importing? (see this thread from 2006)
java.awt.List or java.util.List?
Because, as eclipse aptly comments, java.awt.List is not parameterized ;)
Check also the
Other than that, there was lots of issue back in 2005 when the latest Eclipse 3.1 beta was supporting J2SE5, but this was fixed since then.
Try tyo use the latest JDK6 in your project.