]> source.dussan.org Git - aspectj.git/commitdiff
230075: testcode and fix
authoraclement <aclement>
Tue, 10 Jun 2008 22:46:14 +0000 (22:46 +0000)
committeraclement <aclement>
Tue, 10 Jun 2008 22:46:14 +0000 (22:46 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelShadow.java

index 008d14119acada4f407b8c85b06d985bb9283435..99cb6f387dab1707250bf4a1b024898be3eec732 100644 (file)
@@ -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))) {