aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2008-06-10 22:46:14 +0000
committeraclement <aclement>2008-06-10 22:46:14 +0000
commitd5334b1fc19fc53ff5303eee88f9ac41ef0f0172 (patch)
tree5501c5444ee102b26bcab38fea7e140a42843eaf
parentb6964089f1c56d86697c27823a065b7b2d5bf56e (diff)
downloadaspectj-d5334b1fc19fc53ff5303eee88f9ac41ef0f0172.tar.gz
aspectj-d5334b1fc19fc53ff5303eee88f9ac41ef0f0172.zip
230075: testcode and fix
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelShadow.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
index 008d14119..99cb6f387 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
@@ -3447,9 +3447,10 @@ public class BcelShadow extends Shadow {
targetType = UnresolvedType.forName(getActualTargetType()).resolve(world);
}
ResolvedMember resolvedMember = getSignature().resolve(world);
-
+
+ // pr230075
if (resolvedMember != null && Modifier.isProtected(resolvedMember.getModifiers()) &&
- !samePackage(targetType.getPackageName(), getEnclosingType().getPackageName()) &&
+ !samePackage(resolvedMember.getDeclaringType().getPackageName(), getEnclosingType().getPackageName()) &&
!resolvedMember.getName().equals("clone"))
{
if (!targetType.resolve(world).isAssignableFrom(getThisType().resolve(world))) {