diff options
Diffstat (limited to 'src/test/javassist/proxyfactory/Tester.java')
-rw-r--r-- | src/test/javassist/proxyfactory/Tester.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/javassist/proxyfactory/Tester.java b/src/test/javassist/proxyfactory/Tester.java index 39033885..601076da 100644 --- a/src/test/javassist/proxyfactory/Tester.java +++ b/src/test/javassist/proxyfactory/Tester.java @@ -27,7 +27,7 @@ public class Tester extends TestCase { ProxyFactory f = new ProxyFactory(); f.setSuperclass(Hand.class); Class c = f.createClass(); - Hand foo = (Hand)c.newInstance(); + Hand foo = (Hand)c.getConstructor().newInstance(); ((Proxy)foo).setHandler(mi); assertTrue(ProxyFactory.isProxyClass(c)); assertEquals(3, foo.getHandler()); |