// This software is subject to the terms of the IBM Jikes Test Suite // License Agreement available at the following URL: // http://www.ibm.com/research/jikes. // Copyright (C) 1996, 1999, International Business Machines Corporation // and others. All Rights Reserved. // You must accept the terms of that agreement to use this software. class Test { public static void main(String args[]) { int i = 6; int x = 1; try { i = i + 1; i = other(i); if (i > 3) { x = 5; } for (i=0; i<4; i++) { x = other(x); } } catch (RuntimeException e) { x = x + 5; } catch (Exception e) { x = x + 10; } System.out.println(i+x); System.exit(i+x); } static int other(int i) throws Exception { int a[]; a = new int[3]; if (i > 5) throw new Exception("stuff"); a[i] = 5; // this should throws a Bounds Exception return a[i]; } }