Work around JDK8 issue.