aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test3/Enhancer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test3/Enhancer.java')
-rw-r--r--src/test/test3/Enhancer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test3/Enhancer.java b/src/test/test3/Enhancer.java
index 5c9d2a25..8aa13d25 100644
--- a/src/test/test3/Enhancer.java
+++ b/src/test/test3/Enhancer.java
@@ -35,7 +35,7 @@ public class Enhancer {
}
});
Class c = e.createClass();
- EnhanceTest obj = (EnhanceTest)c.newInstance();
+ EnhanceTest obj = (EnhanceTest)c.getConstructor().newInstance();
obj.foo("test");
}