generic ApplicationListener event type gets detected through proxy as well

This commit is contained in:
Juergen Hoeller
2009-12-28 18:57:15 +00:00
parent d2f28ccf41
commit 0fb4af6b59
3 changed files with 28 additions and 1 deletions

View File

@@ -147,7 +147,11 @@ public abstract class GenericTypeResolver {
for (int i = 0; i < typeArgs.length; i++) {
Type arg = typeArgs[i];
if (arg instanceof TypeVariable) {
arg = getTypeVariableMap(ownerClass).get((TypeVariable) arg);
TypeVariable tv = (TypeVariable) arg;
arg = getTypeVariableMap(ownerClass).get(tv);
if (arg == null) {
arg = extractBoundForTypeVariable(tv);
}
}
result[i] = (arg instanceof Class ? (Class) arg : Object.class);
}