From 30718de26e1603f038027dfc4b1de4a42b61ec90 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 13 Dec 2005 20:10:31 +0000 Subject: [PATCH] testcode for 113257 --- .../src/pkg1.monitoring/DoMonitorErrors.java | 5 +++++ .../src/pkg1.monitoring/ErrorMonitoring.aj | 22 +++++++++++++++++++ .../PR113257/inc1/src/pkg1.monitoring/A.aj | 5 +++++ 3 files changed, 32 insertions(+) create mode 100644 tests/multiIncremental/PR113257/base/src/pkg1.monitoring/DoMonitorErrors.java create mode 100644 tests/multiIncremental/PR113257/base/src/pkg1.monitoring/ErrorMonitoring.aj create mode 100644 tests/multiIncremental/PR113257/inc1/src/pkg1.monitoring/A.aj 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 { + +} -- 2.39.5