diff options
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 { + +} |