aboutsummaryrefslogtreecommitdiffstats
path: root/ajde.core
diff options
context:
space:
mode:
authorAndy Clement <aclement@gopivotal.com>2013-08-27 13:25:30 -0700
committerAndy Clement <aclement@gopivotal.com>2013-08-27 13:25:30 -0700
commitd82db7bf44e2e0d5f68798c22cd7eb373452bc54 (patch)
tree3fbb4d37b44a8506791f2e68a4ee9fde624b8b17 /ajde.core
parent7716a15cbe03d6bd518ac013c4d9ffd7b9f05a3f (diff)
downloadaspectj-d82db7bf44e2e0d5f68798c22cd7eb373452bc54.tar.gz
aspectj-d82db7bf44e2e0d5f68798c22cd7eb373452bc54.zip
Fix 415957: annotations with 1.8 flags
Diffstat (limited to 'ajde.core')
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java4
1 files changed, 1 insertions, 3 deletions
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);