Hmm... Im not sure why you would of got this error. What version JDK are you running it under?

It works fine for me...

What editor are you using?