aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-03-06 22:12:00 +0000
committerjhugunin <jhugunin>2003-03-06 22:12:00 +0000
commit0a175d2d0330eb9843ad17c917bb2434faab59e7 (patch)
tree0cc1b669eed105ce85e56ec7e93068227903b2a0 /org.aspectj.ajdt.core
parent5d61a55e62fda794c101f2001bbad34f8c915e01 (diff)
downloadaspectj-0a175d2d0330eb9843ad17c917bb2434faab59e7.tar.gz
aspectj-0a175d2d0330eb9843ad17c917bb2434faab59e7.zip
FIXED: Bugzilla Bug 32421
can't resolve nested public interfaces FIXED: Bugzilla Bug 32399 Incorrect binding of protected (marker) interfaces
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseScope.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseScope.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseScope.java
index d90f99781..f21e96c69 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseScope.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseScope.java
@@ -24,6 +24,7 @@ import org.aspectj.weaver.IHasPosition;
import org.aspectj.weaver.ResolvedTypeX;
import org.aspectj.weaver.TypeX;
import org.aspectj.weaver.World;
+import org.aspectj.weaver.patterns.*;
import org.aspectj.weaver.patterns.FormalBinding;
import org.aspectj.weaver.patterns.IScope;
import org.eclipse.jdt.internal.compiler.lookup.ClassScope;
@@ -60,6 +61,17 @@ public class EclipseScope implements IScope {
public TypeX lookupType(String name, IHasPosition location) {
+ TypeBinding b = scope.getType(WildTypePattern.splitNames(name));
+ //FIXME need reasonable error handling...
+ if (!b.isValidBinding()) {
+ return ResolvedTypeX.MISSING;
+ }
+
+ //System.err.println("binding: " + b);
+ // Binding(tokens, bits & RestrictiveFlagMASK, this)
+ return world.fromBinding(b);
+
+ /*
computeImports();
// System.out.println("lookup: " + name + " in " +
@@ -98,6 +110,7 @@ public class EclipseScope implements IScope {
}
return resolveVisible(name);
+ */
}