mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 06:29:10 +00:00
generic ApplicationListener event type gets detected through proxy as well
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2723 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+5
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user