diff options
Diffstat (limited to 'ajde')
-rw-r--r-- | ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java index 504f2b927..7be16e8dd 100644 --- a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java +++ b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java @@ -292,11 +292,13 @@ public class CompilerAdapter { if (sourceLevel.equals(CompilerOptions.VERSION_1_5)) { optionsToSet.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5); } else { - String setCompliance = (String) optionsToSet.get( CompilerOptions.OPTION_Compliance); - if ( ! (setCompliance.equals(CompilerOptions.VERSION_1_4 ) - && slVersion.equals(CompilerOptions.VERSION_1_3)) ) { - optionsToSet.put(CompilerOptions.OPTION_Source, slVersion); - } + if (optionsToSet.containsKey(CompilerOptions.OPTION_Compliance)) { + String setCompliance = (String) optionsToSet.get(CompilerOptions.OPTION_Compliance); + if ( ! (setCompliance.equals(CompilerOptions.VERSION_1_4 ) + && slVersion.equals(CompilerOptions.VERSION_1_3)) ) { + optionsToSet.put(CompilerOptions.OPTION_Source, slVersion); + } + } } } |