diff options
author | aclement <aclement> | 2008-06-17 02:24:10 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-06-17 02:24:10 +0000 |
commit | da5aaae9a023e4bd2bc28a29fa84d626fce9682e (patch) | |
tree | a91bf1075cadd519ad35678c369b6a35114c0256 /tests/bugs161/pr198196 | |
parent | 4fb4bfabf4e0a0f45a7935fb542056a36b16217a (diff) | |
download | aspectj-da5aaae9a023e4bd2bc28a29fa84d626fce9682e.tar.gz aspectj-da5aaae9a023e4bd2bc28a29fa84d626fce9682e.zip |
198196: prevent stackoverflow
Diffstat (limited to 'tests/bugs161/pr198196')
-rw-r--r-- | tests/bugs161/pr198196/MarkerAspect2.java | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |