1 package test5; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 public class StackmapWithArray83 { run()7 public int run() { 8 bytecodeVerifyError(); 9 bytecodeVerifyError2(); 10 return 1; 11 } 12 bytecodeVerifyError()13 public void bytecodeVerifyError() { 14 List<Integer> test = new ArrayList<Integer>(); 15 String[] newLine = new String[10]; 16 for (Integer idx : test) { 17 String address = newLine[1]; 18 int tabPos = -1; 19 if (tabPos != -1) { 20 address = address.substring(tabPos + 1); 21 } 22 newLine[4] = address; 23 } 24 } 25 bytecodeVerifyError2()26 public void bytecodeVerifyError2() { 27 List<Integer> test = new ArrayList<Integer>(); 28 int[] newLine = new int[10]; 29 for (Integer idx : test) { 30 int address = newLine[1]; 31 int tabPos = -1; 32 if (tabPos != -1) { 33 address = address + tabPos; 34 } 35 newLine[4] = address; 36 } 37 } 38 } 39