aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-17 08:36:18 +0000
committeracolyer <acolyer>2005-08-17 08:36:18 +0000
commit0f181ac687428a9aec2b711609516292f76e28b1 (patch)
tree3c4b4b3d031f8b5b17f84ee046dc8e2379dc9318 /org.aspectj.ajdt.core
parent14eea512cb9eca5b1868948d269788ddbfdda36b (diff)
downloadaspectj-0f181ac687428a9aec2b711609516292f76e28b1.tar.gz
aspectj-0f181ac687428a9aec2b711609516292f76e28b1.zip
fix for bug 98952: @AJ if pointcut
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java19
1 files changed, 10 insertions, 9 deletions
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 2cd372797..68502b43c 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
@@ -444,15 +444,16 @@ public class ValidateAtAspectJAnnotationsVisitor extends ASTVisitor {
pcDecl.setGenerateSyntheticPointcutMethod();
TypeDeclaration onType = (TypeDeclaration) typeStack.peek();
pcDecl.postParse(onType);
- EclipseFactory factory = EclipseFactory.fromScopeLookupEnvironment(methodDeclaration.scope);
- int argsLength = methodDeclaration.arguments == null ? 0 : methodDeclaration.arguments.length;
- FormalBinding[] bindings = new FormalBinding[argsLength];
- for (int i = 0, len = bindings.length; i < len; i++) {
- Argument arg = methodDeclaration.arguments[i];
- String name = new String(arg.name);
- UnresolvedType type = factory.fromBinding(methodDeclaration.binding.parameters[i]);
- bindings[i] = new FormalBinding(type, name, i, arg.sourceStart, arg.sourceEnd, "unknown");
- }
+// EclipseFactory factory = EclipseFactory.fromScopeLookupEnvironment(methodDeclaration.scope);
+// int argsLength = methodDeclaration.arguments == null ? 0 : methodDeclaration.arguments.length;
+ FormalBinding[] bindings = buildFormalAdviceBindingsFrom(methodDeclaration);
+// FormalBinding[] bindings = new FormalBinding[argsLength];
+// for (int i = 0, len = bindings.length; i < len; i++) {
+// Argument arg = methodDeclaration.arguments[i];
+// String name = new String(arg.name);
+// UnresolvedType type = factory.fromBinding(methodDeclaration.binding.parameters[i]);
+// bindings[i] = new FormalBinding(type, name, i, arg.sourceStart, arg.sourceEnd, "unknown");
+// }
swap(onType,methodDeclaration,pcDecl);
pc.resolve(new EclipseScope(bindings,methodDeclaration.scope));
HasIfPCDVisitor ifFinder = new HasIfPCDVisitor();