Actually, it looks like this is okay with Java 6, unless I'm mistaken.