From 572e8e4d8bf9cae92510e822c291e9bb791da683 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 2 Aug 2006 08:46:25 +0000 Subject: Fix for failure when lock()/unlock() used in XML defined pointcut and would require synchronization transform of a method --- weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | 1 + 1 file changed, 1 insertion(+) (limited to 'weaver') 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; -- cgit v1.2.3