From b14d5e8a49519156f711d9e6ee15a6ff6c729b69 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 16 May 2006 11:46:32 +0000 Subject: [PATCH] for 82570 - add linenumbertable for generated methods (aspectOf/etc) --- .../aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java | 2 +- .../aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5