JDK 6 compliance