]> source.dussan.org Git - aspectj.git/commitdiff
work-around for hack that makes BinaryTypeBinding extend SourceTypeBinding
authorjhugunin <jhugunin>
Fri, 3 Jan 2003 19:16:44 +0000 (19:16 +0000)
committerjhugunin <jhugunin>
Fri, 3 Jan 2003 19:16:44 +0000 (19:16 +0000)
org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java

index 34f38282c5debce946a56374784fb056e571577a..c8e5d99794aa3fd057efb8a6353daa9d619a23f2 100644 (file)
@@ -387,6 +387,7 @@ public final int sourceEnd() {
 }
 public AbstractMethodDeclaration sourceMethod() {
        SourceTypeBinding sourceType;
+       if (declaringClass instanceof BinaryTypeBinding) return null;
        try {
                sourceType = (SourceTypeBinding) declaringClass;
        } catch (ClassCastException e) {