IntelliJ IDEA bug?

Alternative 1

Screen shot 2010-03-24 at 18.06.34.png

Alternative 2

Screen shot 2010-03-24 at 18.07.05.png

Me and javac think the two code snippets above are both valid and pretty much same. Funnily IntelliJ IDEA disagrees.

But it’s OK, I still think it’s the best Java IDE available.