From: aclement Date: Mon, 8 Dec 2008 20:42:55 +0000 (+0000) Subject: 255856: test and fix: dont incorrectly process @target(Blah)+ X-Git-Tag: V1_6_3rc1~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2fe4f4bae75cc48d7b36af9d2b8e6337ccf89216;p=aspectj.git 255856: test and fix: dont incorrectly process @target(Blah)+ --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java index 91c395823..8f1f624c1 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java @@ -376,7 +376,9 @@ public class ValidateAtAspectJAnnotationsVisitor extends ASTVisitor { pointcutExpression = getStringLiteralFor("value", adviceAnn, pcLocation); try { ISourceContext context = new EclipseSourceContext(unit.compilationResult, pcLocation[0]); - Pointcut pc = new PatternParser(pointcutExpression, context).parsePointcut(); + PatternParser pp = new PatternParser(pointcutExpression, context); + Pointcut pc = pp.parsePointcut(); + pp.checkEof(); FormalBinding[] bindings = buildFormalAdviceBindingsFrom(methodDeclaration); pc.resolve(new EclipseScope(bindings, methodDeclaration.scope)); EclipseFactory factory = EclipseFactory.fromScopeLookupEnvironment(methodDeclaration.scope);