When using GenericResponse with the beandledom-jaxrs-clientproxy project, and the resource interface returns a GenericResponse without a type, the client call fails with an exception because the code expects the response to have a entity.
Steps to reproduce:
Have a interface method that returns a untyped GenericResponse. GenericResponse getGenericWithNoType();
Attempt to call this method using a GenericClientProxy
Observed Results:
Exception is thrown
java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
at com.cerner.beadledom.client.proxy.GenericClientProxy.buildGenericResponse(GenericClientProxy.java:56)
at com.cerner.beadledom.client.proxy.GenericClientProxy.invoke(GenericClientProxy.java:42)
#### Expected Results:
* A GenericResponse is returned without a `body()`
Describe the problem:
When using GenericResponse with the beandledom-jaxrs-clientproxy project, and the resource interface returns a GenericResponse without a type, the client call fails with an exception because the code expects the response to have a entity.
Steps to reproduce:
GenericResponse getGenericWithNoType();
Observed Results:
java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType at com.cerner.beadledom.client.proxy.GenericClientProxy.buildGenericResponse(GenericClientProxy.java:56) at com.cerner.beadledom.client.proxy.GenericClientProxy.invoke(GenericClientProxy.java:42)