]> source.dussan.org Git - aspectj.git/commitdiff
move away from using helper methods on Member
authoraclement <aclement>
Tue, 17 Nov 2009 17:58:05 +0000 (17:58 +0000)
committeraclement <aclement>
Tue, 17 Nov 2009 17:58:05 +0000 (17:58 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelMethod.java

index e790d5f3e6312a2338bd2189fc442c561ac15ebf..5f606ce7f713ecf2e8ced31ab175b2142e9caf37 100644 (file)
@@ -168,7 +168,7 @@ class BcelMethod extends ResolvedMemberImpl {
                } else {
                        UnresolvedType[] paramTypes = getParameterTypes();
                        String[] paramNames = new String[len];
-                       int index = isStatic() ? 0 : 1;
+                       int index = Modifier.isStatic(modifiers) ? 0 : 1;
                        for (int i = 0; i < len; i++) {
                                LocalVariable lv = varTable.getLocalVariable(index);
                                if (lv == null) {