diff -r ca9489245872 -r b7af6f568d00 test/langtools/tools/jdeps/jdkinternals/src/p/Main.java --- a/test/langtools/tools/jdeps/jdkinternals/src/p/Main.java Wed Dec 20 11:00:07 2017 -0800 +++ b/test/langtools/tools/jdeps/jdkinternals/src/p/Main.java Fri Dec 22 15:55:29 2017 +0000 @@ -27,10 +27,14 @@ import sun.misc.Service; import sun.misc.SoftCache; import sun.reflect.Reflection; +import sun.reflect.ReflectionFactory; public class Main { public static void main() { // in jdk.unsupported + ReflectionFactory factory = ReflectionFactory.getReflectionFactory(); + + // removed from jdk.unsupported in JDK 11 Class caller = Reflection.getCallerClass(2); // removed