Attempt to fix Java 8 classes called in Java 6.