From 534ef931bf656e86114044594504b21667bc42e7 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 19 Nov 2009 17:30:01 +0000 Subject: [PATCH] avoid using helpers on Member hierarchy --- .../org/aspectj/weaver/bcel/BcelTypeMunger.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java b/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java index 20d87d117..1f841ed37 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java @@ -598,7 +598,7 @@ public class BcelTypeMunger extends ConcreteTypeMunger { LazyMethodGen mg = makeMethodGen(gen, accessMethod); InstructionList il = new InstructionList(); InstructionFactory fact = gen.getFactory(); - if (field.isStatic()) { + if (Modifier.isStatic(field.getModifiers())) { il.append(fact.createFieldAccess(gen.getClassName(), field.getName(), BcelWorld.makeBcelType(field.getType()), Constants.GETSTATIC)); } else { @@ -641,7 +641,7 @@ public class BcelTypeMunger extends ConcreteTypeMunger { int pos = 0; - if (!method.isStatic()) { + if (!Modifier.isStatic(method.getModifiers())) { il.append(InstructionConstants.ALOAD_0); pos++; } @@ -856,7 +856,7 @@ public class BcelTypeMunger extends ConcreteTypeMunger { InstructionFactory fact = classGen.getFactory(); int pos = 0; - if (!unMangledInterMethod.isStatic()) { + if (!Modifier.isStatic(unMangledInterMethod.getModifiers())) { body.append(InstructionFactory.createThis()); pos++; } @@ -1063,7 +1063,7 @@ public class BcelTypeMunger extends ConcreteTypeMunger { body = bridgeMethod.getBody(); fact = classGen.getFactory(); pos = 0; - if (!bridgingSetter.isStatic()) { + if (!Modifier.isStatic(bridgingSetter.getModifiers())) { body.append(InstructionFactory.createThis()); pos++; } @@ -1193,7 +1193,7 @@ public class BcelTypeMunger extends ConcreteTypeMunger { body = bridgeMethod.getBody(); fact = clazz.getFactory(); - if (!unMangledInterMethod.isStatic()) { + if (!Modifier.isStatic(unMangledInterMethod.getModifiers())) { body.append(InstructionFactory.createThis()); pos++; } @@ -1341,7 +1341,7 @@ public class BcelTypeMunger extends ConcreteTypeMunger { return false; } } - if (rm.isStatic()) { + if (Modifier.isStatic(rm.getModifiers())) { if (rm.getArity() != 0) { body.append(InstructionConstants.ALOAD_0); } @@ -1820,7 +1820,7 @@ public class BcelTypeMunger extends ConcreteTypeMunger { LazyMethodGen mg = makeMethodGen(gen, itdfieldGetter); InstructionList il = new InstructionList(); InstructionFactory fact = gen.getFactory(); - if (field.isStatic()) { + if (Modifier.isStatic(field.getModifiers())) { il.append(fact.createFieldAccess(gen.getClassName(), fg.getName(), fieldType, Constants.GETSTATIC)); } else { il.append(InstructionConstants.ALOAD_0); @@ -1899,7 +1899,7 @@ public class BcelTypeMunger extends ConcreteTypeMunger { fact = gen.getFactory(); int pos = 0; - if (!bridgingSetter.isStatic()) { + if (!Modifier.isStatic(bridgingSetter.getModifiers())) { body.append(InstructionFactory.createThis()); pos++; } -- 2.39.5