* configure.ac: New switch for disabling -O2 (--disable-optimizations).
[cacao.git] / tests / StackTraceBig.java
1 public class StackTraceBig {
2         public static void thrower(int n) throws Exception {
3                 if (n > 0)
4                         thrower(n - 1);
5                 else
6                         throw new Exception("Deep Exception!");
7         }
8
9         public static void main(String[] s) {
10                 try {
11                         thrower(100);
12                         System.out.println("FAILED: Exception not caught!");
13                 } catch (Exception e) {
14                         System.out.println("OK");
15                         e.printStackTrace();
16                 }
17         }
18 }