src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/reflect/Class_newInstance02.java
changeset 51436 091c0d22e735
parent 50858 2d3e99a72541
child 52578 7dd81e82d083
equal deleted inserted replaced
51435:72c82bd05971 51436:091c0d22e735
    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         }