From 2eb753a83ebccdf88026e6003ecff1f73e022700 Mon Sep 17 00:00:00 2001 From: acolyer Date: Wed, 26 Feb 2003 22:06:59 +0000 Subject: [PATCH] Edited (and then restored) iilegalNewFigElt pointcut to trap declare error task generation --- ajde/testdata/examples/figures-coverage/figures/Figure.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ajde/testdata/examples/figures-coverage/figures/Figure.java b/ajde/testdata/examples/figures-coverage/figures/Figure.java index e7f5da0c8..b5e0e246a 100644 --- a/ajde/testdata/examples/figures-coverage/figures/Figure.java +++ b/ajde/testdata/examples/figures-coverage/figures/Figure.java @@ -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."; -- 2.39.5