* src/vm/jit/stacktrace.h (stacktracebuffer): Entries are stored inside stb now.
[cacao.git] / tests / StackTraceBig.java
diff --git a/tests/StackTraceBig.java b/tests/StackTraceBig.java
new file mode 100644 (file)
index 0000000..8242d87
--- /dev/null
@@ -0,0 +1,18 @@
+public class StackTraceBig {
+       public static void thrower(int n) throws Exception {
+               if (n > 0)
+                       thrower(n - 1);
+               else
+                       throw new Exception("Deep Exception!");
+       }
+
+       public static void main(String[] s) {
+               try {
+                       thrower(100);
+                       System.out.println("FAILED: Exception not caught!");
+               } catch (Exception e) {
+                       System.out.println("OK");
+                       e.printStackTrace();
+               }
+       }
+}