diff options
author | aclement <aclement> | 2011-12-10 00:53:25 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-12-10 00:53:25 +0000 |
commit | 5229a770a19081ab7bcc478210a6992c9cf13ada (patch) | |
tree | afad4aababc94c962493fa2718c1a760ce8aa31e | |
parent | 7b44e495af85f30704b1a5d6625762f4093164ef (diff) | |
download | aspectj-5229a770a19081ab7bcc478210a6992c9cf13ada.tar.gz aspectj-5229a770a19081ab7bcc478210a6992c9cf13ada.zip |
added var declaration so it doesnt get skipped by jdt processing
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java index bd234dd03..aabcc19c0 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java @@ -21,6 +21,7 @@ import org.aspectj.org.eclipse.jdt.internal.compiler.ClassFile; import org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult; import org.aspectj.org.eclipse.jdt.internal.compiler.ast.Argument; import org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration; +import org.aspectj.org.eclipse.jdt.internal.compiler.ast.LocalDeclaration; import org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeReference; import org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.aspectj.org.eclipse.jdt.internal.compiler.codegen.CodeStream; @@ -267,6 +268,8 @@ public class InterTypeMethodDeclaration extends InterTypeDeclaration { for (int a = 0; a < itdArgs.length; a++) { LocalVariableBinding lvb = itdArgs[a].binding; LocalVariableBinding lvbCopy = new LocalVariableBinding(lvb.name, lvb.type, lvb.modifiers, true); + // e37: have to create a declaration so that the check in ClassFile (line 2538) won't skip it + lvbCopy.declaration = new LocalDeclaration(itdArgs[a].name,0,0); codeStream.record(lvbCopy); lvbCopy.recordInitializationStartPC(0); lvbCopy.resolvedPosition = lvb.resolvedPosition; |