blob: c8333d814214cfbd58ce77299ac3f3b8783965b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
}
}
}
|