src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/reflect/Class_newInstance02.java
equal
deleted
inserted
replaced
30 |
30 |
31 import org.graalvm.compiler.jtt.JTTTest; |
31 import org.graalvm.compiler.jtt.JTTTest; |
32 |
32 |
33 public final class Class_newInstance02 extends JTTTest { |
33 public final class Class_newInstance02 extends JTTTest { |
34 |
34 |
|
35 @SuppressWarnings("deprecation") |
35 public static boolean test(int i) throws IllegalAccessException, InstantiationException { |
36 public static boolean test(int i) throws IllegalAccessException, InstantiationException { |
36 if (i == 0) { |
37 if (i == 0) { |
37 // note: we rely on the other class here. |
38 // note: we rely on the other class here. |
38 return Class_newInstance07.Class_newInstance.class.newInstance() != null; |
39 return Class_newInstance07.Class_newInstance.class.newInstance() != null; |
39 } |
40 } |