aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-25 12:51:01 +0000
committeracolyer <acolyer>2005-08-25 12:51:01 +0000
commit4d2c46f3f99d7ca0bbfbdbac6adb92f64a851653 (patch)
tree358ff1e62e81a10317a2e72942584721bf2b4756
parentc9cacff1d61d108c2e3ddf3b4b81a17cd26a1b9c (diff)
downloadaspectj-4d2c46f3f99d7ca0bbfbdbac6adb92f64a851653.tar.gz
aspectj-4d2c46f3f99d7ca0bbfbdbac6adb92f64a851653.zip
hopefully this really is the very very last we'll see of can't find type $Local$ messages
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java
index fca8cac17..ed8924184 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java
@@ -261,11 +261,13 @@ public class EclipseFactory {
}
// LocalTypeBinding have a name $Local$, we can get the real name by using the signature....
- if (binding.isLocalType()) {
+ if (binding instanceof LocalTypeBinding) {
LocalTypeBinding ltb = (LocalTypeBinding) binding;
if (ltb.constantPoolName() != null && ltb.constantPoolName().length > 0) {
return UnresolvedType.forSignature(new String(binding.signature()));
- }
+ } else {
+ return UnresolvedType.forSignature(new String(ltb.genericTypeSignature()));
+ }
}
return UnresolvedType.forName(getName(binding));