Given
{code:java}public class MultipleBoundWithClass<T extends String & MultipleBoundWithClass.Bound> { T genericType;
public T getGenericType(){ return genericType; }
public interface Bound{
} }{code}
the bind type name
{code:java}Type type = MultipleBoundWithClass.class.getMethod( "getGenericType", new Class[0] ).getGenericReturnType(); Type bind = approximatingUnboundContext.bind( type );{code}
the bind type name {{bind.getTypeName()}} should be equal to {{String.class.getName()}} and not {{Object.class.getName()}} |
|