aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/javassist/proxyfactory/ProxyFactoryTest.java
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2018-12-05 00:19:56 +0900
committerchibash <chiba@javassist.org>2018-12-05 00:19:56 +0900
commita82e2d71bd3da248dab836f4e150ff08cc0e6915 (patch)
tree0c7c092e1a804da25108d64defdb76b534af66b1 /src/test/javassist/proxyfactory/ProxyFactoryTest.java
parent85d69ea6b380ee35dfcf40ca3d98ab59f0b01916 (diff)
downloadjavassist-a82e2d71bd3da248dab836f4e150ff08cc0e6915.tar.gz
javassist-a82e2d71bd3da248dab836f4e150ff08cc0e6915.zip
fixes a bug reported in #228
Diffstat (limited to 'src/test/javassist/proxyfactory/ProxyFactoryTest.java')
-rw-r--r--src/test/javassist/proxyfactory/ProxyFactoryTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/javassist/proxyfactory/ProxyFactoryTest.java b/src/test/javassist/proxyfactory/ProxyFactoryTest.java
index 3189b568..43a96bb6 100644
--- a/src/test/javassist/proxyfactory/ProxyFactoryTest.java
+++ b/src/test/javassist/proxyfactory/ProxyFactoryTest.java
@@ -128,4 +128,16 @@ public class ProxyFactoryTest extends TestCase {
public static class TestDefaultC2 extends TestDefaultC {
public int baz() { return super.foo(); }
}
+
+ public void testJava11() throws Exception {
+ ProxyFactory factory = new ProxyFactory();
+ factory.setSuperclass(java.util.HashMap.class);
+ java.util.HashMap e = (java.util.HashMap)factory.create(null, null, new MethodHandler() {
+ @Override
+ public Object invoke(Object self, Method thisMethod,
+ Method proceed, Object[] args) throws Throwable {
+ return proceed.invoke(self, args);
+ }
+ });
+ }
}