updating references from JDK7 to JDK8