diff options
author | Shigeru Chiba <chibash@users.noreply.github.com> | 2016-07-30 23:04:07 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-30 23:04:07 +0900 |
commit | 65a8950b4f0718e273f42ca9832abd44ef731223 (patch) | |
tree | c01fd6094bbc2381fb3905efc343560deab0fd57 /src/test/javassist/JvstTest5.java | |
parent | d753903f73c547954bb9c11260f7a64ac3652633 (diff) | |
parent | f795fcb1717fdde3e0c510b218b04abb55081202 (diff) | |
download | javassist-65a8950b4f0718e273f42ca9832abd44ef731223.tar.gz javassist-65a8950b4f0718e273f42ca9832abd44ef731223.zip |
Merge pull request #95 from jboss-javassist/master
merges bug fixes
Diffstat (limited to 'src/test/javassist/JvstTest5.java')
-rw-r--r-- | src/test/javassist/JvstTest5.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/javassist/JvstTest5.java b/src/test/javassist/JvstTest5.java index 1af027fd..792fed6e 100644 --- a/src/test/javassist/JvstTest5.java +++ b/src/test/javassist/JvstTest5.java @@ -220,4 +220,19 @@ public class JvstTest5 extends JvstTestRoot { Class clazzz = badClass.toClass(); Object obj = clazzz.newInstance(); // <-- falls here } + + public void test83StackmapWithArrayType() throws Exception { + final CtClass ctClass = sloader.get("test5.StackmapWithArray83"); + final CtMethod method = ctClass.getDeclaredMethod("bytecodeVerifyError"); + method.addLocalVariable("test_localVariable", CtClass.intType); + method.insertBefore("{ test_localVariable = 1; }"); + + final CtMethod method2 = ctClass.getDeclaredMethod("bytecodeVerifyError2"); + method2.addLocalVariable("test_localVariable", CtClass.intType); + method2.insertBefore("{ test_localVariable = 1; }"); + + ctClass.writeFile(); + Object obj = make(ctClass.getName()); + assertEquals(1, invoke(obj, "run")); + } } |