From d3a9088bfc312ce744551b1e89831fde0a681bcb Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 7 Apr 2005 10:03:59 +0000 Subject: Configure weaver to behave in 1.5 way if Java compiler is configured that way in AJDT. --- ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ajde') diff --git a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java index 1d2221bb8..8bb83599e 100644 --- a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java +++ b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java @@ -355,6 +355,14 @@ public class CompilerAdapter { config.setIncrementalMode(true); } + Map jom = options.getJavaOptionsMap(); + if (jom!=null) { + String version = (String)jom.get(CompilerOptions.OPTION_Compliance); + if (version!=null && version.equals(CompilerOptions.VERSION_1_5)) { + config.setBehaveInJava5Way(true); + } + } + config.getOptions().set(optionsToSet); String toAdd = options.getNonStandardOptions(); return LangUtil.isEmpty(toAdd) -- cgit v1.2.3