From: aclement Date: Thu, 17 Jan 2008 00:03:05 +0000 (+0000) Subject: AspectJ6: corrected version check X-Git-Tag: V1_6_0M1~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1bd89958fb45b6d00aaa330d1374145aff105521;p=aspectj.git AspectJ6: corrected version check --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjPipeliningCompilerAdapter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjPipeliningCompilerAdapter.java index f5c87e7d4..481bbcd6c 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjPipeliningCompilerAdapter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjPipeliningCompilerAdapter.java @@ -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) {