aboutsummaryrefslogtreecommitdiffstats
path: root/ajde/testdata
diff options
context:
space:
mode:
authormkersten <mkersten>2003-02-26 10:11:28 +0000
committermkersten <mkersten>2003-02-26 10:11:28 +0000
commit9a67e6290d6e330418f9b0ccaa94ec32d9f0aa49 (patch)
tree66b43650b4cf851649bb829c36958c91879f2c2e /ajde/testdata
parent5e5a2dd20e2c8038dbaf14583710c76e21988659 (diff)
downloadaspectj-9a67e6290d6e330418f9b0ccaa94ec32d9f0aa49.tar.gz
aspectj-9a67e6290d6e330418f9b0ccaa94ec32d9f0aa49.zip
The mappings for advice are now correct, and associations have corresponding kinds (e.g. "affects exception handlers").
Diffstat (limited to 'ajde/testdata')
-rw-r--r--ajde/testdata/examples/coverage/ModelCoverage.java15
-rw-r--r--ajde/testdata/examples/coverage/coverage.ajsymbin10265 -> 12313 bytes
2 files changed, 8 insertions, 7 deletions
diff --git a/ajde/testdata/examples/coverage/ModelCoverage.java b/ajde/testdata/examples/coverage/ModelCoverage.java
index cf14bf080..c882d1674 100644
--- a/ajde/testdata/examples/coverage/ModelCoverage.java
+++ b/ajde/testdata/examples/coverage/ModelCoverage.java
@@ -1,5 +1,5 @@
-import java.io.*;;
+import java.io.*;
class Point {
@@ -23,24 +23,25 @@ class Point {
System.err.println("!");
}
setX(10);
+ new Point();
}
}
-aspect PcdCoverage {
+aspect AdvisesRelationCoverage {
before(): get(int *.*) { }
before(): set(int *.*) { }
before(): initialization(Point.new(..)) { }
before(): staticinitialization(Point) { }
before(): handler(IOException) { }
- before(): call(String Point.setX(int)) { }
-// before(): call(String Point.new()) { }
-// execution(): call(String Point.setX(int)) { }
+ before(): call(* Point.setX(int)) { }
+ before(): call(Point.new()) { }
+ before(): within(*) && execution(* Point.setX(..)) { }
+ before(): within(*) && execution(Point.new()) { }
}
aspect InterTypeDecCoverage {
- pointcut illegalNewFigElt(): call(FigureElement+.new(..)) &&
- !withincode(* Main.main(..));
+ pointcut illegalNewFigElt(): call(Point.new(..)) && !withincode(* *.doIt(..));
declare error: illegalNewFigElt():
"Illegal figure element constructor call.";
diff --git a/ajde/testdata/examples/coverage/coverage.ajsym b/ajde/testdata/examples/coverage/coverage.ajsym
index 27561a1b3..f796d993d 100644
--- a/ajde/testdata/examples/coverage/coverage.ajsym
+++ b/ajde/testdata/examples/coverage/coverage.ajsym
Binary files differ