summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2011-08-05 16:23:28 +0000
committeraclement <aclement>2011-08-05 16:23:28 +0000
commita53143e61fffa71f497de40bbc6a5627a46a3a33 (patch)
tree317a10a60d4b5c70b1064ec334041e7bd3cc0370
parentb34895092ae0708fa0a0a251505601186774a5a0 (diff)
downloadaspectj-a53143e61fffa71f497de40bbc6a5627a46a3a33.tar.gz
aspectj-a53143e61fffa71f497de40bbc6a5627a46a3a33.zip
minimalModel ON by default. demotion ON by default (for AJDT as well as LTW)
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/World.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/World.java b/org.aspectj.matcher/src/org/aspectj/weaver/World.java
index bde4ae37f..97516eca0 100644
--- a/org.aspectj.matcher/src/org/aspectj/weaver/World.java
+++ b/org.aspectj.matcher/src/org/aspectj/weaver/World.java
@@ -139,7 +139,7 @@ public abstract class World implements Dump.INode {
private int itdVersion = 2; // defaults to 2nd generation itds
// Minimal Model controls whether model entities that are not involved in relationships are deleted post-build
- private boolean minimalModel = false;
+ private boolean minimalModel = true;
private boolean useFinal = true;
private boolean targettingRuntime1_6_10 = false;
@@ -166,11 +166,11 @@ public abstract class World implements Dump.INode {
static {
try {
- String value = System.getProperty("aspectj.overweaving", "false");
- if (value.equalsIgnoreCase("true")) {
- System.out.println("ASPECTJ: aspectj.overweaving=true: overweaving switched ON");
- systemPropertyOverWeaving = true;
- }
+ String value = System.getProperty("aspectj.overweaving", "false");
+ if (value.equalsIgnoreCase("true")) {
+ System.out.println("ASPECTJ: aspectj.overweaving=true: overweaving switched ON");
+ systemPropertyOverWeaving = true;
+ }
} catch (Throwable t) {
System.err.println("ASPECTJ: Unable to read system properties");
t.printStackTrace();
@@ -1486,7 +1486,7 @@ public abstract class World implements Dump.INode {
// resolving types (*cough* java.lang.Enum) ---
public boolean isDemotionActive() {
- return false;
+ return true;
}
// --- this first map is for java15 delegates which may try and recursively
@@ -1549,9 +1549,9 @@ public abstract class World implements Dump.INode {
useFinal = false; // if avoidFinal=true, then set useFinal to false
}
- s = p.getProperty(xsetMINIMAL_MODEL, "false");
- if (s.equalsIgnoreCase("true")) {
- minimalModel = true;
+ s = p.getProperty(xsetMINIMAL_MODEL, "true");
+ if (s.equalsIgnoreCase("false")) {
+ minimalModel = false;
}
s = p.getProperty(xsetTARGETING_RUNTIME_1610, "false");
@@ -1575,7 +1575,7 @@ public abstract class World implements Dump.INode {
MessageUtil.info("[completeBinaryTypes=true] Completion of binary types activated"));
}
- s = p.getProperty(xsetTYPE_DEMOTION); // default is: ON (for ltw) OFF (for ctw)
+ s = p.getProperty(xsetTYPE_DEMOTION); // default is: ON
if (s != null) {
boolean b = typeMap.demotionSystemActive;
if (b && s.equalsIgnoreCase("false")) {