Java 7 language compatibility