From d53fe2aeac3c48998da570516a3d3810fb3a40fe Mon Sep 17 00:00:00 2001 From: avasseur Date: Mon, 7 Nov 2005 11:02:00 +0000 Subject: [PATCH] #114897 notreweavable is default on LTW - by Matthew Webster. --- loadtime/src/org/aspectj/weaver/loadtime/Options.java | 8 ++++---- tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml | 2 +- .../ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/loadtime/src/org/aspectj/weaver/loadtime/Options.java b/loadtime/src/org/aspectj/weaver/loadtime/Options.java index 705c585dd..5bc469470 100644 --- a/loadtime/src/org/aspectj/weaver/loadtime/Options.java +++ b/loadtime/src/org/aspectj/weaver/loadtime/Options.java @@ -35,7 +35,7 @@ public class Options { private final static String OPTION_noWarnNone = "-warn:none"; private final static String OPTION_proceedOnError = "-proceedOnError"; private final static String OPTION_verbose = "-verbose"; - private final static String OPTION_notReweavable = "-XNotReweavable"; + private final static String OPTION_reweavable = "-Xreweavable";//notReweavable is default for LTW private final static String OPTION_noinline = "-Xnoinline"; private final static String OPTION_hasMember = "-XhasMember"; private final static String OPTION_pinpoint = "-Xdev:pinpoint"; @@ -91,8 +91,8 @@ public class Options { weaverOption.noWarn = true; } else if (arg.equalsIgnoreCase(OPTION_proceedOnError)) { weaverOption.proceedOnError = true; - } else if (arg.equalsIgnoreCase(OPTION_notReweavable)) { - weaverOption.notReWeavable = true; + } else if (arg.equalsIgnoreCase(OPTION_reweavable)) { + weaverOption.notReWeavable = false; } else if (arg.equalsIgnoreCase(OPTION_showWeaveInfo)) { weaverOption.showWeaveInfo = true; } else if (arg.equalsIgnoreCase(OPTION_hasMember)) { @@ -144,7 +144,7 @@ public class Options { boolean noWarn; boolean proceedOnError; boolean verbose; - boolean notReWeavable; + boolean notReWeavable = true;//default to notReweavable for LTW (faster) boolean noInline; boolean showWeaveInfo; boolean pinpoint; diff --git a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml index 82702105f..c7756c8e5 100644 --- a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml +++ b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml @@ -1,5 +1,5 @@ - + diff --git a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml index 11ace2a93..492d6df63 100644 --- a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml +++ b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml @@ -1,5 +1,5 @@ - + -- 2.39.5