From d82db7bf44e2e0d5f68798c22cd7eb373452bc54 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Tue, 27 Aug 2013 13:25:30 -0700 Subject: Fix 415957: annotations with 1.8 flags --- .../src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ajde.core/src') diff --git a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java index 8ebfb8424..0bf95bb56 100644 --- a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java +++ b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java @@ -301,9 +301,7 @@ public class AjdeCoreBuildManager { Map jom = compilerConfig.getJavaOptionsMap(); if (jom != null) { String version = (String) jom.get(CompilerOptions.OPTION_Compliance); - if (version != null - && (version.equals(CompilerOptions.VERSION_1_5) || version.equals(CompilerOptions.VERSION_1_6) || version - .equals(CompilerOptions.VERSION_1_7))) { + if (version != null && !version.equals(CompilerOptions.VERSION_1_4)) { config.setBehaveInJava5Way(true); } config.getOptions().set(jom); -- cgit v1.2.3