aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test5/StackmapWithArray83.java
diff options
context:
space:
mode:
authorShigeru Chiba <chibash@users.noreply.github.com>2016-07-30 23:04:07 +0900
committerGitHub <noreply@github.com>2016-07-30 23:04:07 +0900
commit65a8950b4f0718e273f42ca9832abd44ef731223 (patch)
treec01fd6094bbc2381fb3905efc343560deab0fd57 /src/test/test5/StackmapWithArray83.java
parentd753903f73c547954bb9c11260f7a64ac3652633 (diff)
parentf795fcb1717fdde3e0c510b218b04abb55081202 (diff)
downloadjavassist-65a8950b4f0718e273f42ca9832abd44ef731223.tar.gz
javassist-65a8950b4f0718e273f42ca9832abd44ef731223.zip
Merge pull request #95 from jboss-javassist/master
merges bug fixes
Diffstat (limited to 'src/test/test5/StackmapWithArray83.java')
-rw-r--r--src/test/test5/StackmapWithArray83.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/test/test5/StackmapWithArray83.java b/src/test/test5/StackmapWithArray83.java
new file mode 100644
index 00000000..c8333d81
--- /dev/null
+++ b/src/test/test5/StackmapWithArray83.java
@@ -0,0 +1,38 @@
+package test5;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class StackmapWithArray83 {
+ public int run() {
+ bytecodeVerifyError();
+ bytecodeVerifyError2();
+ return 1;
+ }
+
+ public void bytecodeVerifyError() {
+ List<Integer> test = new ArrayList<Integer>();
+ String[] newLine = new String[10];
+ for (Integer idx : test) {
+ String address = newLine[1];
+ int tabPos = -1;
+ if (tabPos != -1) {
+ address = address.substring(tabPos + 1);
+ }
+ newLine[4] = address;
+ }
+ }
+
+ public void bytecodeVerifyError2() {
+ List<Integer> test = new ArrayList<Integer>();
+ int[] newLine = new int[10];
+ for (Integer idx : test) {
+ int address = newLine[1];
+ int tabPos = -1;
+ if (tabPos != -1) {
+ address = address + tabPos;
+ }
+ newLine[4] = address;
+ }
+ }
+}