aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test3/Enhancer.java
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2016-08-02 01:36:45 +0900
committerchibash <chiba@javassist.org>2016-08-02 01:36:45 +0900
commit0ebd27d23e6cf16be080ee2ca89255429f06b5ad (patch)
tree401a17dece8b046df71370aed39f74f6d11d3ace /src/test/test3/Enhancer.java
parent4ed22b0f7fab7c237d732e446ae43ee9af112df4 (diff)
downloadjavassist-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/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");
}