diff options
author | aclement <aclement> | 2010-05-13 04:05:22 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-05-13 04:05:22 +0000 |
commit | c9ddef9fd762835484653acd5434ee366a3bc04a (patch) | |
tree | 11605dc8cc740bf87b6c1431d4d69aac0c7da386 | |
parent | 4245893a0efebd1bc5c20b0bd5ac3ac668c89f93 (diff) | |
download | aspectj-c9ddef9fd762835484653acd5434ee366a3bc04a.tar.gz aspectj-c9ddef9fd762835484653acd5434ee366a3bc04a.zip |
more overweaving tests and fixes: method call/field get/set
-rw-r--r-- | org.aspectj.matcher/src/org/aspectj/weaver/World.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/World.java b/org.aspectj.matcher/src/org/aspectj/weaver/World.java index cf38789ff..d5259de48 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/World.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/World.java @@ -317,7 +317,7 @@ public abstract class World implements Dump.INode { } } - // Only need one representation of '?' in a world - can be shared + // Only need one representation of '?' in a world - can be shared private BoundedReferenceType wildcard; private BoundedReferenceType getWildcard() { @@ -1366,6 +1366,7 @@ public abstract class World implements Dump.INode { } public void ensureAdvancedConfigurationProcessed() { + // Check *once* whether the user has switched asm support off if (!checkedAdvancedConfiguration) { Properties p = getExtraConfiguration(); @@ -1459,6 +1460,16 @@ public abstract class World implements Dump.INode { } } + try{ + String value = System.getProperty("aspectj.overweaving", "false"); + if (value.equalsIgnoreCase("true")) { + System.out.println("ASPECTJ: aspectj.overweaving=true: overweaving switched ON"); + overWeaving = true; + } + } catch (Throwable t) { + System.err.println("ASPECTJ: Unable to read system properties"); + t.printStackTrace(); + } checkedAdvancedConfiguration = true; } } |