]> source.dussan.org Git - aspectj.git/commitdiff
AspectJ6: picking up compiler interface changes
authoraclement <aclement>
Thu, 17 Jan 2008 00:11:35 +0000 (00:11 +0000)
committeraclement <aclement>
Thu, 17 Jan 2008 00:11:35 +0000 (00:11 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AjMethodDeclaration.java

index 3c1418e48a030659782431d6a2262ddd7f7ff328..62bb6dce223cf0b1390296e3078b4fe19f526427 100644 (file)
@@ -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;