]> source.dussan.org Git - aspectj.git/commitdiff
198196: prevent stackoverflow
authoraclement <aclement>
Tue, 17 Jun 2008 02:24:10 +0000 (02:24 +0000)
committeraclement <aclement>
Tue, 17 Jun 2008 02:24:10 +0000 (02:24 +0000)
tests/bugs161/pr198196/MarkerAspect2.java

index 31306210eeb9ceec499c0dcd31d96b3ddd049aad..109904f5ce061ada84563cfde3dc220f2427576d 100644 (file)
@@ -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();