1 package test4; 2 3 public class JIRA207 { run()4 public int run() { 5 int i = 3; 6 return foo(i); 7 } 8 foo(int i)9 public int foo(int i) { 10 int k = i + 3; 11 if (k > 0) 12 return k * k; 13 else 14 return k; 15 } 16 run2()17 public int run2() { 18 int i = 0; 19 int p = i; 20 int q = p; 21 int r = q; 22 for (int k = 1; k < 3; ++k) 23 p += k; 24 25 for (int k = 3; k > 0; --k) 26 try { 27 foo(k); 28 p++; 29 } 30 finally { 31 p++; 32 } 33 34 try { 35 foo(p); 36 } 37 catch (RuntimeException e) { 38 if (p > 0) 39 throw e; 40 } 41 42 switch (p) { 43 case 1: 44 p = 100; 45 break; 46 default : 47 ++p; 48 } 49 return p + r; 50 } 51 } 52