From d5334b1fc19fc53ff5303eee88f9ac41ef0f0172 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 10 Jun 2008 22:46:14 +0000 Subject: [PATCH] 230075: testcode and fix --- weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | 5 +++-- 1 file 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))) { -- 2.39.5