You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StackmapWithArray83.java 958B

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