-
Feature Request
-
Resolution: Done
-
Minor
-
3.0.14.Final
-
None
-
None
I wind up with Unable to determine base class from Type when I use wildcard type. The support just seems to be missing from org.jboss.resteasy.util.Types.getRawType(Type) method and below is my workaround.
public static Class<?> getRawType(Type type) { ... else if (type instanceof WildcardType) { WildcardType wildcardType = (WildcardType) type; Type[] upperBounds = wildcardType.getUpperBounds(); if (upperBounds != null && upperBounds.length > 0) { return getRawType(upperBounds[0]); } } throw new RuntimeException(Messages.MESSAGES.unableToDetermineBaseClass()); } }
- is cloned by
-
JBEAP-4713 WildcardType support to org.jboss.resteasy.util.Types
- Closed
- is duplicated by
-
RESTEASY-1330 Support Java generic wildcard types
- Closed
- is related to
-
RESTEASY-2570 org.jboss.resteasy.spi.util.Types.extractTypeVariables support for ParameterizedType
- Open