< prev index next >
test/langtools/tools/jdeps/jdkinternals/src/p/Main.java
Print this page
*** 25,38 ****
--- 25,42 ----
import com.sun.image.codec.jpeg.JPEGCodec;
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
JPEGCodec r = new JPEGCodec();
< prev index next >