From 3b0d0cea728844785cf0627e6b13d4c81e9746c4 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 17 Jan 2008 00:11:35 +0000 Subject: [PATCH] AspectJ6: picking up compiler interface changes --- .../ajdt/internal/compiler/ast/AjMethodDeclaration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AjMethodDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AjMethodDeclaration.java index 3c1418e48..62bb6dce2 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AjMethodDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AjMethodDeclaration.java @@ -16,6 +16,7 @@ import java.util.List; 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.MethodDeclaration; +import org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.aspectj.weaver.AjAttribute; /** @@ -60,7 +61,7 @@ public class AjMethodDeclaration extends MethodDeclaration { } protected void addDeclarationStartLineAttribute(List extraAttributeList, ClassFile classFile) { - if (!classFile.codeStream.generateLineNumberAttributes) return; + if ((classFile.codeStream.generateAttributes & ClassFileConstants.ATTR_LINES)==0) return; int[] separators = compilationResult().lineSeparatorPositions; int declarationStartLine = 1; -- 2.39.5