aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-03-12 02:10:40 +0000
committerjhugunin <jhugunin>2003-03-12 02:10:40 +0000
commitad5377fcb2342ae792702a6641421620fceee244 (patch)
tree7705ecf82c4370c21ffe969887b7cadcd1bbf857 /org.aspectj.ajdt.core
parent0fb5f693794e571ab693813cbc80578b2bc7b470 (diff)
downloadaspectj-ad5377fcb2342ae792702a6641421620fceee244.tar.gz
aspectj-ad5377fcb2342ae792702a6641421620fceee244.zip
implemented fastMatch method along with some basic tests of
weave performance with and without it
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/testdata/src1/trace/HardTraceNothing.java5
-rw-r--r--org.aspectj.ajdt.core/testdata/src1/trace/ObviousTraceNothing.java7
-rw-r--r--org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java33
3 files changed, 45 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testdata/src1/trace/HardTraceNothing.java b/org.aspectj.ajdt.core/testdata/src1/trace/HardTraceNothing.java
new file mode 100644
index 000000000..6f6b8e1cb
--- /dev/null
+++ b/org.aspectj.ajdt.core/testdata/src1/trace/HardTraceNothing.java
@@ -0,0 +1,5 @@
+package trace;
+
+public aspect HardTraceNothing extends MegaTrace {
+ pointcut where(): call(public * frotz(..));
+} \ No newline at end of file
diff --git a/org.aspectj.ajdt.core/testdata/src1/trace/ObviousTraceNothing.java b/org.aspectj.ajdt.core/testdata/src1/trace/ObviousTraceNothing.java
new file mode 100644
index 000000000..5b1af0081
--- /dev/null
+++ b/org.aspectj.ajdt.core/testdata/src1/trace/ObviousTraceNothing.java
@@ -0,0 +1,7 @@
+package trace;
+
+public aspect ObviousTraceNothing extends MegaTrace {
+ pointcut where(): within(foo.bar..*);
+
+ declare parents: foo.bar..* implements Marker;
+} \ No newline at end of file
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java
index f83ee7ed3..86bd3c227 100644
--- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java
+++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java
@@ -28,6 +28,10 @@ public class BcweaverJarMaker {
makeJar1a();
makeJar2();
+ makeJarObviousNothing();
+ makeJarHardNothing();
+
+
makeTestJars();
}
@@ -60,6 +64,35 @@ public class BcweaverJarMaker {
}
+ public static void makeJarObviousNothing() throws IOException {
+ List args = new ArrayList();
+ args.add("-outjar");
+ args.add("../weaver/testdata/megatrace0easy.jar");
+
+ args.add("-classpath");
+ args.add("../runtime/bin");
+
+ args.add("testdata/src1/trace/MegaTrace.java");
+ args.add("testdata/src1/trace/ObviousTraceNothing.java");
+
+ CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS);
+ }
+
+ public static void makeJarHardNothing() throws IOException {
+ List args = new ArrayList();
+ args.add("-outjar");
+ args.add("../weaver/testdata/megatrace0hard.jar");
+
+ args.add("-classpath");
+ args.add("../runtime/bin");
+
+ args.add("testdata/src1/trace/MegaTrace.java");
+ args.add("testdata/src1/trace/HardTraceNothing.java");
+
+ CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS);
+ }
+
+
public static void makeJar1a() throws IOException {
List args = new ArrayList();
args.add("-outjar");