summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jdt.core
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-01-03 19:16:44 +0000
committerjhugunin <jhugunin>2003-01-03 19:16:44 +0000
commit779e5e30c4e0adc33b7f7f757d91b54ee5c21c12 (patch)
tree652e2751bb75c80ae9f7b7079cc2e6ae2138bb5f /org.eclipse.jdt.core
parent3fb52353cc63299ef545acd6540b90da084e35fa (diff)
downloadaspectj-779e5e30c4e0adc33b7f7f757d91b54ee5c21c12.tar.gz
aspectj-779e5e30c4e0adc33b7f7f757d91b54ee5c21c12.zip
work-around for hack that makes BinaryTypeBinding extend SourceTypeBinding
Diffstat (limited to 'org.eclipse.jdt.core')
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java
index 34f38282c..c8e5d9979 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java
@@ -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) {