]> source.dussan.org Git - aspectj.git/commitdiff
move away from using helper methods on Member
authoraclement <aclement>
Tue, 17 Nov 2009 17:56:58 +0000 (17:56 +0000)
committeraclement <aclement>
Tue, 17 Nov 2009 17:56:58 +0000 (17:56 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java

index ca112872b63447df7139d4e20114577e9ba9f47d..5a8426c801d272a2a7927b6d66cc1dbf9b973c15 100644 (file)
@@ -867,7 +867,7 @@ public class AspectDeclaration extends TypeDeclaration {
                                new BodyGenerator() {
                                        public void generate(CodeStream codeStream) {
                                                // body starts here
-                                               if (field.isStatic()) {
+                                               if (Modifier.isStatic(field.getModifiers())) {
                                                        codeStream.getstatic(fieldBinding);
                                                } else {
                                                        codeStream.aload_0();
@@ -907,7 +907,7 @@ public class AspectDeclaration extends TypeDeclaration {
 
                                                AstUtil.generateParameterLoads(accessMethod.parameters, codeStream);
 
-                                               if (method.isStatic()) {
+                                               if (Modifier.isStatic(method.getModifiers())) {
                                                        codeStream.invokestatic(factory.makeMethodBinding(method));
                                                } else {
                                                        codeStream.invokevirtual(factory.makeMethodBinding(method));