]> source.dussan.org Git - aspectj.git/commitdiff
handles resolution of bindings when the pointcut uses type variables
authoracolyer <acolyer>
Tue, 12 Jul 2005 14:24:51 +0000 (14:24 +0000)
committeracolyer <acolyer>
Tue, 12 Jul 2005 14:24:51 +0000 (14:24 +0000)
weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java

index 7496225eec14a441e93800fa11a92d00e99862bb..4361032771d301328461132e2c86c940686e603d 100644 (file)
@@ -526,11 +526,11 @@ public class WildTypePattern extends TypePattern {
                                ret = new ExactTypePattern(type,includeSubtypes,isVarArgs);
                        } else {
                            // TODO generics not written yet - when the type parameters are not exact
-                               throw new RuntimeException("Type parameters are not exact");
+                               //throw new RuntimeException("Type parameters are not exact");
                                // AMC... just leave it as a wild type pattern then?
-                               //importedPrefixes = scope.getImportedPrefixes();
-                               //knownMatches = preMatch(scope.getImportedNames());
-                               //return this;
+                               importedPrefixes = scope.getImportedPrefixes();
+                               knownMatches = preMatch(scope.getImportedNames());
+                               return this;
                        }
                } else {
                        if (dim != 0) rawType = TypeX.makeArray(rawType, dim);