diff -r 2c33418a6d57 -r 83b611b88ac8 jdk/src/java.management/share/classes/sun/management/ManagementFactoryHelper.java --- a/jdk/src/java.management/share/classes/sun/management/ManagementFactoryHelper.java Thu Apr 06 17:01:03 2017 +0000 +++ b/jdk/src/java.management/share/classes/sun/management/ManagementFactoryHelper.java Fri Apr 07 08:05:54 2017 +0000 @@ -45,7 +45,6 @@ import java.util.ArrayList; import java.util.List; -import java.lang.reflect.Module; import java.lang.reflect.UndeclaredThrowableException; import java.security.PrivilegedAction; import java.util.Collections; @@ -181,8 +180,7 @@ return AccessController.doPrivileged(new PrivilegedAction<>() { @Override public Class run() { - Optional logging = java.lang.reflect.Layer.boot() - .findModule("java.logging"); + Optional logging = ModuleLayer.boot().findModule("java.logging"); if (logging.isPresent()) { return Class.forName(logging.get(), className); }