aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs166
diff options
context:
space:
mode:
authoraclement <aclement>2009-09-23 16:03:49 +0000
committeraclement <aclement>2009-09-23 16:03:49 +0000
commit237604e31504b5da74448fc9e3c389bd998640aa (patch)
treeab6c154e5e7924a65abd2f3349be21172ad52704 /tests/bugs166
parent88978624d0b3b68bbd964cd02edb1c4e90ba4e71 (diff)
downloadaspectj-237604e31504b5da74448fc9e3c389bd998640aa.tar.gz
aspectj-237604e31504b5da74448fc9e3c389bd998640aa.zip
290227: fix and test
Diffstat (limited to 'tests/bugs166')
-rw-r--r--tests/bugs166/pr290227/AbstractTimingAnnotatedAspect.java39
-rw-r--r--tests/bugs166/pr290227/TimingAnnotatedAspect.java13
-rw-r--r--tests/bugs166/pr290227/javacCode.jarbin0 -> 2765 bytes
3 files changed, 52 insertions, 0 deletions
diff --git a/tests/bugs166/pr290227/AbstractTimingAnnotatedAspect.java b/tests/bugs166/pr290227/AbstractTimingAnnotatedAspect.java
new file mode 100644
index 000000000..512f48ba1
--- /dev/null
+++ b/tests/bugs166/pr290227/AbstractTimingAnnotatedAspect.java
@@ -0,0 +1,39 @@
+package aspects;
+
+import org.aspectj.lang.JoinPoint;
+import org.aspectj.lang.ProceedingJoinPoint;
+import org.aspectj.lang.annotation.Around;
+import org.aspectj.lang.annotation.Aspect;
+import org.aspectj.lang.annotation.Before;
+import org.aspectj.lang.annotation.Pointcut;
+
+@ Aspect
+public abstract class AbstractTimingAnnotatedAspect {
+
+ @Pointcut("within(*..AbstractJPivotPortlet+) " +
+ "&& (execution(* do*(..))" +
+ "|| execution(* processAction*(..))" +
+ "|| execution(* serveResource*(..)) )")
+ protected final void portletEntryMethods() {}
+
+ @Pointcut("execution(* eu.ibacz.pbns..*.*(..)) || execution(* com.tonbeller..*.*(..))")
+ protected final void tracedMethods() {}
+
+ @Pointcut("within(aspects.*) || within(aspects..*)")
+ protected final void thisAspectClasses() {}
+
+ @Pointcut("cflow(execution(* TimingAnnotatedAspect.processInvocationFinished(..)))")
+ protected final void thisAspectExecution() {}
+
+ @Pointcut
+ protected abstract void scope();
+
+ @Before("scope() && portletEntryMethods() && !thisAspectClasses() && !thisAspectExecution()")
+ public void logStackTrace(final JoinPoint thisJoinPoint) throws Throwable {
+ System.out.println("logStackTrace: Logging the current stack trace prior to " +
+ "the execution of " +
+ thisJoinPoint.getSignature().toShortString()
+ + new Exception("Current stack trace print out."));
+ } /* logStackTrace */
+
+}
diff --git a/tests/bugs166/pr290227/TimingAnnotatedAspect.java b/tests/bugs166/pr290227/TimingAnnotatedAspect.java
new file mode 100644
index 000000000..4dc2b3bf4
--- /dev/null
+++ b/tests/bugs166/pr290227/TimingAnnotatedAspect.java
@@ -0,0 +1,13 @@
+package aspects;
+
+import org.aspectj.lang.annotation.Aspect;
+import org.aspectj.lang.annotation.Pointcut;
+
+@ Aspect
+public class TimingAnnotatedAspect extends AbstractTimingAnnotatedAspect {
+
+ @Pointcut("")
+ protected void scope() {}
+
+
+}
diff --git a/tests/bugs166/pr290227/javacCode.jar b/tests/bugs166/pr290227/javacCode.jar
new file mode 100644
index 000000000..86b96bf4c
--- /dev/null
+++ b/tests/bugs166/pr290227/javacCode.jar
Binary files differ