]> source.dussan.org Git - aspectj.git/commitdiff
Bugzilla Bug 73895
authoracolyer <acolyer>
Thu, 21 Oct 2004 13:40:23 +0000 (13:40 +0000)
committeracolyer <acolyer>
Thu, 21 Oct 2004 13:40:23 +0000 (13:40 +0000)
   unnecessary cast causing problems

weaver/src/org/aspectj/weaver/ResolvedTypeX.java

index fb81c5a7f9f79019a9e2bf1e5dc5ba91850b7c23..4342ce4fc1d313a6f422065d3299320892c28b14 100644 (file)
@@ -550,7 +550,7 @@ public abstract class ResolvedTypeX extends TypeX {
             }            
             // ??? needs to be Methods, not just declared methods? JLS 5.5 unclear
             ResolvedMember[] a = getDeclaredMethods();
-            ResolvedMember[] b = ((Name)other).getDeclaredMethods();  //??? is this cast always safe
+            ResolvedMember[] b = other.getDeclaredMethods();  //??? is this cast always safe
             for (int ai = 0, alen = a.length; ai < alen; ai++) {
                 for (int bi = 0, blen = b.length; bi < blen; bi++) {
                     if (! b[bi].isCompatibleWith(a[ai])) return false;