diff options
author | aclement <aclement> | 2006-08-02 08:46:25 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-08-02 08:46:25 +0000 |
commit | 572e8e4d8bf9cae92510e822c291e9bb791da683 (patch) | |
tree | 78dfa9e83af9aa46ffe205cf890856374f0f2348 /weaver | |
parent | d15e56b4599a3a5d19e42aee5ae72c2b05c243a3 (diff) | |
download | aspectj-572e8e4d8bf9cae92510e822c291e9bb791da683.tar.gz aspectj-572e8e4d8bf9cae92510e822c291e9bb791da683.zip |
Fix for failure when lock()/unlock() used in XML defined pointcut and would require synchronization transform of a method
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java b/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java index 4e28a619e..4621fb776 100644 --- a/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java +++ b/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java @@ -1726,6 +1726,7 @@ public class AtAjAttributes { PatternParser parser = new PatternParser(pointcutString, struct.context); Pointcut pointcut = parser.parsePointcut(); parser.checkEof(); + pointcut.check(null,struct.enclosingType.getWorld()); if (!allowIf && pointcutString.indexOf("if()") >= 0 && hasIf(pointcut)) { reportError("if() pointcut is not allowed at this pointcut location '" + pointcutString +"'", struct); return null; |