From: aclement Date: Tue, 16 May 2006 11:46:32 +0000 (+0000) Subject: for 82570 - add linenumbertable for generated methods (aspectOf/etc) X-Git-Tag: V1_5_2rc1~130 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b14d5e8a49519156f711d9e6ee15a6ff6c729b69;p=aspectj.git for 82570 - add linenumbertable for generated methods (aspectOf/etc) --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java index 0824480aa..2da558df3 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java @@ -243,7 +243,7 @@ public class AdviceDeclaration extends AjMethodDeclaration { codeStream.checkcast(returnType); } AstUtil.generateReturn(returnType, codeStream); - + codeStream.recordPositionsFrom(0,1); classFile.completeCodeAttribute(codeAttributeOffset); attributeNumber++; classFile.completeMethodInfo(methodAttributeOffset, attributeNumber); diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java index a28832c4a..8ddcc5a61 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java @@ -430,10 +430,10 @@ public class AspectDeclaration extends TypeDeclaration { MethodDeclaration md = AstUtil.makeMethodDeclaration(methodBinding); md.scope = initializerScope; codeStream.reset(md,classFile); - // body starts here gen.generate(codeStream); // body ends here + if (codeStream.pcToSourceMapSize==0) codeStream.recordPositionsFrom(0,1); classFile.completeCodeAttribute(codeAttributeOffset); attributeNumber++; classFile.completeMethodInfo(methodAttributeOffset, attributeNumber);