浏览代码

for 82570 - add linenumbertable for generated methods (aspectOf/etc)

tags/V1_5_2rc1
aclement 18 年前
父节点
当前提交
b14d5e8a49

+ 1
- 1
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);

+ 1
- 1
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);

正在加载...
取消
保存