do an explicit check for Java 7