diff options
author | aclement <aclement> | 2008-06-10 22:46:14 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-06-10 22:46:14 +0000 |
commit | d5334b1fc19fc53ff5303eee88f9ac41ef0f0172 (patch) | |
tree | 5501c5444ee102b26bcab38fea7e140a42843eaf | |
parent | b6964089f1c56d86697c27823a065b7b2d5bf56e (diff) | |
download | aspectj-d5334b1fc19fc53ff5303eee88f9ac41ef0f0172.tar.gz aspectj-d5334b1fc19fc53ff5303eee88f9ac41ef0f0172.zip |
230075: testcode and fix
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | 5 |
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))) { |