]> source.dussan.org Git - aspectj.git/commitdiff
AspectJ6: corrected version check
authoraclement <aclement>
Thu, 17 Jan 2008 00:02:50 +0000 (00:02 +0000)
committeraclement <aclement>
Thu, 17 Jan 2008 00:02:50 +0000 (00:02 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java

index c436dd7c5716d3297dcded5b54fcfe0f79a5eaf5..744eed16ca00718493b7ce0853fd3f945d2347fc 100644 (file)
@@ -24,11 +24,13 @@ import org.aspectj.ajdt.internal.core.builder.AjState;
 import org.aspectj.bridge.IMessage;
 import org.aspectj.bridge.IMessageHandler;
 import org.aspectj.bridge.IProgressListener;
+import org.aspectj.bridge.MessageUtil;
 import org.aspectj.bridge.context.CompilationAndWeavingContext;
 import org.aspectj.bridge.context.ContextToken;
 import org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult;
 import org.aspectj.org.eclipse.jdt.internal.compiler.Compiler;
 import org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration;
+import org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
 import org.aspectj.org.eclipse.jdt.internal.compiler.env.ICompilationUnit;
 import org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
 import org.aspectj.org.eclipse.jdt.internal.compiler.problem.AbortCompilation;
@@ -111,7 +113,7 @@ public class AjCompilerAdapter extends AbstractCompilerAdapter {
                this.noAtAspectJAnnotationProcessing = noAtAspectJProcessing;
                this.incrementalCompilationState = incrementalCompilationState;
                
-               if (compiler.options.complianceLevel == CompilerOptions.JDK1_5) inJava5Mode = true;
+               if (compiler.options.complianceLevel >= ClassFileConstants.JDK1_5) inJava5Mode = true;
                
                IMessageHandler msgHandler = world.getMessageHandler();
                // Do we need to reset the message handler or create a new one? (This saves a ton of memory lost on incremental compiles...)