]> source.dussan.org Git - aspectj.git/commitdiff
332388: test and fix
authoraclement <aclement>
Tue, 14 Dec 2010 20:33:33 +0000 (20:33 +0000)
committeraclement <aclement>
Tue, 14 Dec 2010 20:33:33 +0000 (20:33 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/TypeVariableReferenceType.java

index e33468cf181aba95fb283cc3443d77dd462b1456..24e028e7f44cedf8c721766b3981929e86ac42ed 100644 (file)
@@ -9,7 +9,6 @@
 package org.aspectj.weaver;
 
 import java.util.Map;
-import org.aspectj.bridge.Message;
 
 /**
  * ReferenceType representing a type variable. The delegate for this reference type is the upperbound on the type variable (so
@@ -47,9 +46,9 @@ public class TypeVariableReferenceType extends ReferenceType implements TypeVari
                        if (resolvedFirstBound.isMissing()) {
                                brtd = new BoundedReferenceTypeDelegate((ReferenceType) world.resolve(UnresolvedType.OBJECT));
                                setDelegate(brtd); // set now because getSourceLocation() below will cause a recursive step to discover the delegate
-                               world.getMessageHandler().handleMessage(
-                                               new Message("Unable to find type for generic bound.  Missing type is " + resolvedFirstBound.getName(),
-                                                               getSourceLocation(), true));
+                               world.getLint().cantFindType.signal(
+                                               "Unable to find type for generic bound.  Missing type is " + resolvedFirstBound.getName(),
+                                               getSourceLocation());
                        } else {
                                brtd = new BoundedReferenceTypeDelegate((ReferenceType) resolvedFirstBound);
                                setDelegate(brtd);