From da5aaae9a023e4bd2bc28a29fa84d626fce9682e Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 17 Jun 2008 02:24:10 +0000 Subject: [PATCH] 198196: prevent stackoverflow --- tests/bugs161/pr198196/MarkerAspect2.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/bugs161/pr198196/MarkerAspect2.java b/tests/bugs161/pr198196/MarkerAspect2.java index 31306210e..109904f5c 100644 --- a/tests/bugs161/pr198196/MarkerAspect2.java +++ b/tests/bugs161/pr198196/MarkerAspect2.java @@ -1,12 +1,15 @@ aspect MarkerAspect2 { // IncompatibleClassChangeError + int Marker.i=0; declare parents: Foo implements Marker; public String Marker.toString() { new Runnable() { public void run() { - Marker.super.toString(); + if (i++>5) return; + System.out.println("a"); + Marker.super.toString(); } }.run(); return "banana";//super.toString(); -- 2.39.5