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()); } }
- clones
-
RESTEASY-1295 WildcardType support to org.jboss.resteasy.util.Types
- Closed
- is incorporated by
-
JBEAP-4600 Upgrade Resteasy to 3.0.17.Final
- Closed