Generics problem in 1.5beta

I'm having trouble getting generics to compile using javac 1.5.0beta. I expected to be able to compile the following line:

ArrayList<String> strings = new ArrayList<String>();

but I get the standard error report you'd expect from javac 1.4

'(' or '[' expected:

ArrayList<String> strings = new ArrayList<String>();

^

Anyone else suffering similar problems? Any ideas what my problem might be?

D

[487 byte] By [david.brooks] at [2007-9-30 3:43:06]
# 1
After routing through one of the other fora (Generics), I found that you have to specify -source 1.5 as a compile option.Nonsensical, but I don't have a problem any more...
david.brooks at 2007-6-29 14:49:41 > top of Java-index,Administration Tools,Sun Connection...