Compliance with Java 6