From 8812484c907e46b5691dffd8279f2e5a530f09c0 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 17 Nov 2009 17:57:49 +0000 Subject: [PATCH] move away from using helper methods on Member --- org.aspectj.matcher/src/org/aspectj/weaver/Shadow.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/Shadow.java b/org.aspectj.matcher/src/org/aspectj/weaver/Shadow.java index 290c7a7fa..c8c3121db 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/Shadow.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/Shadow.java @@ -14,6 +14,7 @@ package org.aspectj.weaver; import java.io.DataInputStream; import java.io.IOException; +import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; @@ -70,7 +71,7 @@ public abstract class Shadow { if (getKind().neverHasThis()) { return false; } else if (getKind().isEnclosingKind()) { - return !getSignature().isStatic(); + return !Modifier.isStatic(getSignature().getModifiers()); } else if (enclosingShadow == null) { return false; } else { @@ -109,7 +110,7 @@ public abstract class Shadow { } else if (getKind().isTargetSameAsThis()) { return hasThis(); } else { - return !getSignature().isStatic(); + return !Modifier.isStatic(getSignature().getModifiers()); } } -- 2.39.5