]> source.dussan.org Git - aspectj.git/commitdiff
testcode for 113257
authoraclement <aclement>
Tue, 13 Dec 2005 20:10:31 +0000 (20:10 +0000)
committeraclement <aclement>
Tue, 13 Dec 2005 20:10:31 +0000 (20:10 +0000)
tests/multiIncremental/PR113257/base/src/pkg1.monitoring/DoMonitorErrors.java [new file with mode: 0644]
tests/multiIncremental/PR113257/base/src/pkg1.monitoring/ErrorMonitoring.aj [new file with mode: 0644]
tests/multiIncremental/PR113257/inc1/src/pkg1.monitoring/A.aj [new file with mode: 0644]

diff --git a/tests/multiIncremental/PR113257/base/src/pkg1.monitoring/DoMonitorErrors.java b/tests/multiIncremental/PR113257/base/src/pkg1.monitoring/DoMonitorErrors.java
new file mode 100644 (file)
index 0000000..45a9dd3
--- /dev/null
@@ -0,0 +1,5 @@
+package pkg1.monitoring;
+
+public class DoMonitorErrors {
+
+}
diff --git a/tests/multiIncremental/PR113257/base/src/pkg1.monitoring/ErrorMonitoring.aj b/tests/multiIncremental/PR113257/base/src/pkg1.monitoring/ErrorMonitoring.aj
new file mode 100644 (file)
index 0000000..155b0e4
--- /dev/null
@@ -0,0 +1,22 @@
+package pkg1.monitoring;
+
+public aspect ErrorMonitoring {
+       
+    pointcut adviceEnabled() : isAdviceEnabled() && scope();   
+       pointcut isAdviceEnabled() : if(true);
+       
+       pointcut scope() : within(DoMonitorErrors+) || !within(pkg1.monitoring..*);
+
+    before(Throwable t) : args(t) && scope() && adviceEnabled() {}
+       
+////   before(Throwable t) :
+////           args(t) && 
+////           ((scope() && isAdviceEnabled() &&  within(DoMonitorErrors+))
+////                   ||  scope() && isAdviceEnabled() &&  !within(pkg1.monitoring..*)) {
+////   }
+//     before(Throwable t) :
+//             args(t) && 
+//             (scope() && ( (isAdviceEnabled() && within(DoMonitorErrors+))
+//                     || (isAdviceEnabled() &&  !within(pkg1.monitoring..*)))) {
+//     }
+}
diff --git a/tests/multiIncremental/PR113257/inc1/src/pkg1.monitoring/A.aj b/tests/multiIncremental/PR113257/inc1/src/pkg1.monitoring/A.aj
new file mode 100644 (file)
index 0000000..ab196ff
--- /dev/null
@@ -0,0 +1,5 @@
+package pkg1.monitoring;
+
+public aspect A {
+
+}