summaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental/PR113257
diff options
context:
space:
mode:
authoraclement <aclement>2005-12-13 20:10:31 +0000
committeraclement <aclement>2005-12-13 20:10:31 +0000
commit30718de26e1603f038027dfc4b1de4a42b61ec90 (patch)
tree26a8fbc1f38b731940adc18e9cd3a2ae4e62f4ff /tests/multiIncremental/PR113257
parentdc8360ec2717f4c54d1b2aa43309ac1d2807f7fb (diff)
downloadaspectj-30718de26e1603f038027dfc4b1de4a42b61ec90.tar.gz
aspectj-30718de26e1603f038027dfc4b1de4a42b61ec90.zip
testcode for 113257
Diffstat (limited to 'tests/multiIncremental/PR113257')
-rw-r--r--tests/multiIncremental/PR113257/base/src/pkg1.monitoring/DoMonitorErrors.java5
-rw-r--r--tests/multiIncremental/PR113257/base/src/pkg1.monitoring/ErrorMonitoring.aj22
-rw-r--r--tests/multiIncremental/PR113257/inc1/src/pkg1.monitoring/A.aj5
3 files changed, 32 insertions, 0 deletions
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
index 000000000..45a9dd3b2
--- /dev/null
+++ b/tests/multiIncremental/PR113257/base/src/pkg1.monitoring/DoMonitorErrors.java
@@ -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
index 000000000..155b0e43a
--- /dev/null
+++ b/tests/multiIncremental/PR113257/base/src/pkg1.monitoring/ErrorMonitoring.aj
@@ -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
index 000000000..ab196ff67
--- /dev/null
+++ b/tests/multiIncremental/PR113257/inc1/src/pkg1.monitoring/A.aj
@@ -0,0 +1,5 @@
+package pkg1.monitoring;
+
+public aspect A {
+
+}