diff options
author | chibash <chiba@javassist.org> | 2016-08-02 01:36:45 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2016-08-02 01:36:45 +0900 |
commit | 0ebd27d23e6cf16be080ee2ca89255429f06b5ad (patch) | |
tree | 401a17dece8b046df71370aed39f74f6d11d3ace /src/test/javassist/bytecode/InsertGap0.java | |
parent | 4ed22b0f7fab7c237d732e446ae43ee9af112df4 (diff) | |
download | javassist-0ebd27d23e6cf16be080ee2ca89255429f06b5ad.tar.gz javassist-0ebd27d23e6cf16be080ee2ca89255429f06b5ad.zip |
fixes calls to a deprecated method in Java 9.rel_3_21_0-java9-ea
Diffstat (limited to 'src/test/javassist/bytecode/InsertGap0.java')
-rw-r--r-- | src/test/javassist/bytecode/InsertGap0.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/javassist/bytecode/InsertGap0.java b/src/test/javassist/bytecode/InsertGap0.java index 31fec3aa..6a034141 100644 --- a/src/test/javassist/bytecode/InsertGap0.java +++ b/src/test/javassist/bytecode/InsertGap0.java @@ -175,7 +175,7 @@ public final class InsertGap0 extends JvstTestRoot { Class c = cc.toClass(); cc.stopPruning(p); - Object obj = c.newInstance(); + Object obj = c.getConstructor().newInstance(); assertEquals(2, invoke(obj, "run", 0)); } @@ -194,7 +194,7 @@ public final class InsertGap0 extends JvstTestRoot { Class c = cc.toClass(); cc.stopPruning(p); - Object obj = c.newInstance(); + Object obj = c.getConstructor().newInstance(); assertEquals(0, invoke(obj, "run2", 0)); } |