From 1103c631ddda49ce4f032f6794f649bd8ef19561 Mon Sep 17 00:00:00 2001 From: wisberg Date: Thu, 8 Jan 2004 17:05:36 +0000 Subject: [PATCH] pointcuts for whether after/around advice is supported --- docs/sandbox/common/org/aspectj/langlib/Pointcuts.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/sandbox/common/org/aspectj/langlib/Pointcuts.java b/docs/sandbox/common/org/aspectj/langlib/Pointcuts.java index 6a07230c1..f07341ec7 100644 --- a/docs/sandbox/common/org/aspectj/langlib/Pointcuts.java +++ b/docs/sandbox/common/org/aspectj/langlib/Pointcuts.java @@ -40,7 +40,12 @@ public final class Pointcuts { /** staticly-determinable to never match any join point */ public pointcut never(); // if(false) && execution(ThreadDeath *(ThreadDeath, ThreadDeath)); - + + public pointcut afterAdviceSupported() : !handler(*); + + public pointcut aroundAdviceSupported() : !handler(*) + && !initialization(new(..)) && !preinitialization(new(..)); + public pointcut anyMethodExecution() : execution(* *(..)); -- 2.39.5