aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2002-12-17 22:18:57 +0000
committerjhugunin <jhugunin>2002-12-17 22:18:57 +0000
commit2c79569b4b20adbb10cf9081536ecd7a9c37dfea (patch)
tree09a852e83cc80803ccd60788749142c05f8a1c68 /org.aspectj.ajdt.core
parent7b7572bc37dca8798e29ffaa7c9f2d88c810af21 (diff)
downloadaspectj-2c79569b4b20adbb10cf9081536ecd7a9c37dfea.tar.gz
aspectj-2c79569b4b20adbb10cf9081536ecd7a9c37dfea.zip
better error handling for cases where type name is required
instead of type pattern
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java
index e09f859fc..cbd1e1367 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java
@@ -140,7 +140,8 @@ public class AjLookupEnvironment extends LookupEnvironment {
private void addParent(DeclareParents declareParents, ClassScope scope, TypePattern typePattern) {
SourceTypeBinding sourceType = scope.referenceContext.binding;
- if (!typePattern.assertExactType(world.getMessageHandler())) return;
+ //if (!typePattern.assertExactType(world.getMessageHandler())) return;
+ if (typePattern == TypePattern.NO) return; // already had an error here
TypeX iType = typePattern.getExactType();
// if (iType == null) {
// throw new RuntimeException("yikes: " + typePattern);