]> source.dussan.org Git - aspectj.git/commitdiff
oops - used Boolean.parseBoolean()
authoraclement <aclement>
Tue, 21 Feb 2006 15:42:31 +0000 (15:42 +0000)
committeraclement <aclement>
Tue, 21 Feb 2006 15:42:31 +0000 (15:42 +0000)
weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java

index 043537de1cc169dabd0b90f5f9fbf76d27df59d0..b5122899ab83f4f2bf2b07e04922c5157d5d238d 100644 (file)
@@ -278,7 +278,8 @@ public final class LazyMethodGen {
        if (!checkedXsetOption) {
                Properties p = enclosingClass.getWorld().getExtraConfiguration();
                if (p!=null) {
-                       avoidUseOfBcelGenObjects = Boolean.parseBoolean(p.getProperty("optimizeWithTags","true"));
+                       String s = p.getProperty("optimizeWithTags","true");
+                       avoidUseOfBcelGenObjects = s.equalsIgnoreCase("true");
                        if (!avoidUseOfBcelGenObjects) 
                                enclosingClass.getWorld().getMessageHandler().handleMessage(MessageUtil.info("[optimizeWithTags=false] Disabling optimization to use Tags rather than Gens"));
                }