DATACMNS-176 - ClassTypeInformation now always inspects user class.

Unwrap potentially wrapped CBGlib classes handed to ClassTypeInformation for inspection.
This commit is contained in:
Oliver Gierke
2012-09-13 19:21:10 +02:00
parent a01de83547
commit 96bc596333

View File

@@ -29,6 +29,7 @@ import java.util.Set;
import java.util.WeakHashMap;
import org.springframework.core.GenericTypeResolver;
import org.springframework.util.ClassUtils;
/**
* {@link TypeInformation} for a plain {@link Class}.
@@ -91,12 +92,12 @@ public class ClassTypeInformation<S> extends TypeDiscoverer<S> {
*
* @param type
*/
public ClassTypeInformation(Class<S> type) {
ClassTypeInformation(Class<S> type) {
this(type, GenericTypeResolver.getTypeVariableMap(type));
}
ClassTypeInformation(Class<S> type, Map<TypeVariable, Type> typeVariableMap) {
super(type, typeVariableMap);
super(ClassUtils.getUserClass(type), typeVariableMap);
this.type = type;
}