From c9ddef9fd762835484653acd5434ee366a3bc04a Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 13 May 2010 04:05:22 +0000 Subject: [PATCH] more overweaving tests and fixes: method call/field get/set --- .../src/org/aspectj/weaver/World.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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; } } -- 2.39.5