]> source.dussan.org Git - aspectj.git/commitdiff
Edited (and then restored) iilegalNewFigElt pointcut
authoracolyer <acolyer>
Wed, 26 Feb 2003 22:06:59 +0000 (22:06 +0000)
committeracolyer <acolyer>
Wed, 26 Feb 2003 22:06:59 +0000 (22:06 +0000)
to trap declare error task generation

ajde/testdata/examples/figures-coverage/figures/Figure.java

index e7f5da0c8c7007c27b57050fb2d0ba25ee68c3ec..b5e0e246a2a469a690570f3a4c3f51b54bf3dbd0 100644 (file)
@@ -79,9 +79,11 @@ aspect Figure {
 }
 
 aspect Checks {
-    pointcut illegalNewFigElt():  call(FigureElement+.new(..)) &&
+    pointcut illegalNewFigElt():  call(FigureElement+.new(..))  &&
                                  !withincode(* Main.main(..));
 
+//     pointcut illegalNewFigElt(): execution(FigureElement+.new(..));
+
     declare error: illegalNewFigElt():
            "Illegal figure element constructor call.";