aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/src
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2018-10-10 12:56:00 -0700
committerAndy Clement <aclement@pivotal.io>2018-10-10 12:56:00 -0700
commit46a1172aac0b24ccbcb38083ff66d8e8e4ff2d17 (patch)
tree0088ad1a923a4d13e34f921abd65ab73241bc6d8 /org.aspectj.ajdt.core/src
parent95a9c5db0c9b4b0011f12eb0df93beac5278aa0b (diff)
downloadaspectj-46a1172aac0b24ccbcb38083ff66d8e8e4ff2d17.tar.gz
aspectj-46a1172aac0b24ccbcb38083ff66d8e8e4ff2d17.zip
Reverse default - behave like 1.5 (support annotations) by default
Diffstat (limited to 'org.aspectj.ajdt.core/src')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java32
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjCompilerOptions.java5
2 files changed, 12 insertions, 25 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java
index 448618c11..66488fa8c 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java
@@ -815,33 +815,17 @@ public class BuildArgParser extends Main {
} else if (arg.equals("-timers")) {
buildConfig.setTiming(true);
// swallow - it is dealt with in Main.runMain()
- } else if (arg.equals("-1.5")) {
- buildConfig.setBehaveInJava5Way(true);
- unparsedArgs.add("-1.5");
- // this would enable the '-source 1.5' to do the same as '-1.5' but doesnt sound quite right as
- // as an option right now as it doesnt mean we support 1.5 source code - people will get confused...
- } else if (arg.equals("-1.6")) {
- buildConfig.setBehaveInJava5Way(true);
- unparsedArgs.add("-1.6");
- } else if (arg.equals("-1.7")) {
- buildConfig.setBehaveInJava5Way(true);
- unparsedArgs.add("-1.7");
- } else if (arg.equals("-1.8")) {
- buildConfig.setBehaveInJava5Way(true);
- unparsedArgs.add("-1.8");
- } else if (arg.equals("-1.9")) {
- buildConfig.setBehaveInJava5Way(true);
- unparsedArgs.add("-1.9");
- } else if (arg.equals("-10")) {
- buildConfig.setBehaveInJava5Way(true);
- unparsedArgs.add("-10");
+ } else if (arg.equals("-1.3")) {
+ buildConfig.setBehaveInJava5Way(false);
+ unparsedArgs.add("-1.3");
+ } else if (arg.equals("-1.4")) {
+ buildConfig.setBehaveInJava5Way(false);
+ unparsedArgs.add("-1.4");
} else if (arg.equals("-source")) {
if (args.size() > nextArgIndex) {
String level = args.get(nextArgIndex).getValue();
- if (level.equals("1.5") || level.equals("5") || level.equals("1.6") || level.equals("6") || level.equals("1.7")
- || level.equals("7") || level.equals("8") || level.equals("1.8")
- || level.equals("9") || level.equals("1.9") || level.equals("10")) {
- buildConfig.setBehaveInJava5Way(true);
+ if (level.equals("1.3") || level.equals("1.4")) {
+ buildConfig.setBehaveInJava5Way(false);
}
unparsedArgs.add("-source");
unparsedArgs.add(level);
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjCompilerOptions.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjCompilerOptions.java
index a7be9ec6e..cdf534b54 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjCompilerOptions.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjCompilerOptions.java
@@ -73,7 +73,7 @@ public class AjCompilerOptions extends CompilerOptions {
public String xOptionalJoinpoints = null;
// If true - autoboxing behaves differently ...
- public boolean behaveInJava5Way = false;
+ public boolean behaveInJava5Way = true;
public boolean timing = false;
@@ -117,6 +117,7 @@ public class AjCompilerOptions extends CompilerOptions {
set(settings);
}
+ @Override
public Map<String,String> getMap() {
Map<String,String> map = super.getMap();
// now add AspectJ additional options
@@ -148,6 +149,7 @@ public class AjCompilerOptions extends CompilerOptions {
return map;
}
+ @Override
public void set(Map<String,String> optionsMap) {
super.set(optionsMap);
Object optionValue;
@@ -282,6 +284,7 @@ public class AjCompilerOptions extends CompilerOptions {
super.warningThreshold.set(CompilerOptions.SwallowedExceptionInCatchBlock);
}
+ @Override
public String toString() {
StringBuffer buf = new StringBuffer(super.toString());
// now add AspectJ additional options