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

index e6e2ba6a117fbed1b579882c3f16a005d187b626..8dc6045e487821b37b350db68564bcf87c29beb4 100644 (file)
@@ -29,6 +29,7 @@ import org.aspectj.org.eclipse.jdt.internal.compiler.ast.ReturnStatement;
 import org.aspectj.org.eclipse.jdt.internal.compiler.ast.Statement;
 import org.aspectj.org.eclipse.jdt.internal.compiler.ast.TrueLiteral;
 import org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration;
+import org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
 import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding;
 import org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser;
 
@@ -97,8 +98,8 @@ public class IfPseudoToken extends PseudoToken {
        //XXX todo: make sure that errors in Arguments only get displayed once
        private MethodDeclaration makeMethod(CompilationResult result, MethodDeclaration enclosingDec) {
                MethodDeclaration ret = new IfMethodDeclaration(result, pointcut);
-               ret.modifiers = AccStatic | AccFinal | AccPublic;
-               ret.returnType = AstUtil.makeTypeReference(TypeBinding.BooleanBinding);
+               ret.modifiers = ClassFileConstants.AccStatic | ClassFileConstants.AccFinal | ClassFileConstants.AccPublic;
+               ret.returnType = AstUtil.makeTypeReference(TypeBinding.BOOLEAN);
                ret.selector = ("ajc$if_" + counter++).toCharArray();
                ret.arguments = makeArguments(enclosingDec);
                ret.statements = new Statement[] {