diff options
author | chibash <chiba@javassist.org> | 2019-07-27 14:06:22 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2019-07-27 14:06:22 +0900 |
commit | 8f4788e0907278cec2a094af179451824651a515 (patch) | |
tree | bff600908fc0597d8ada77ed8618d8650f082e1c /src/test/javassist/proxyfactory | |
parent | 9076bde17537c059aa679bd6c0324bda78bdb088 (diff) | |
download | javassist-8f4788e0907278cec2a094af179451824651a515.tar.gz javassist-8f4788e0907278cec2a094af179451824651a515.zip |
fixed Issue #263
Diffstat (limited to 'src/test/javassist/proxyfactory')
-rw-r--r-- | src/test/javassist/proxyfactory/GenSig.java | 4 | ||||
-rw-r--r-- | src/test/javassist/proxyfactory/ProxyFactoryTest.java | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/test/javassist/proxyfactory/GenSig.java b/src/test/javassist/proxyfactory/GenSig.java new file mode 100644 index 00000000..018cdb39 --- /dev/null +++ b/src/test/javassist/proxyfactory/GenSig.java @@ -0,0 +1,4 @@ +package javassist.proxyfactory; + +class GenSig<T> { +} diff --git a/src/test/javassist/proxyfactory/ProxyFactoryTest.java b/src/test/javassist/proxyfactory/ProxyFactoryTest.java index c69acc9d..0997620f 100644 --- a/src/test/javassist/proxyfactory/ProxyFactoryTest.java +++ b/src/test/javassist/proxyfactory/ProxyFactoryTest.java @@ -152,4 +152,15 @@ public class ProxyFactoryTest extends TestCase { } }); } + + // Issue #263 + public void testGenericSignature() throws Exception { + ProxyFactory factory = new ProxyFactory(); + factory.setSuperclass(GenSig.class); + factory.setGenericSignature("Ljavassist/proxyfactory/GenSig<Ljava/lang/Integer;>;"); + GenSig gs = (GenSig)factory.create(null, null); + java.lang.reflect.Type[] x = ((java.lang.reflect.ParameterizedType)gs.getClass().getGenericSuperclass()) + .getActualTypeArguments(); + assertEquals(Integer.class, x[0]); + } } |