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

index f5c87e7d4bc9d5e1a903bed4dfe6b5c085040dd3..481bbcd6c2b00e534ebd8904c3c0a58959b442c4 100644 (file)
@@ -33,6 +33,7 @@ import org.aspectj.org.eclipse.jdt.internal.compiler.Compiler;
 import org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation;
 import org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration;
 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.env.ICompilationUnit;
 import org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
 import org.aspectj.org.eclipse.jdt.internal.compiler.problem.AbortCompilation;
@@ -190,8 +191,8 @@ public class AjPipeliningCompilerAdapter extends AbstractCompilerAdapter {
                this.inJava5Mode = false;
                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...)
                if (msgHandler instanceof WeaverMessageHandler) {