You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the json RPC methods extending the abstract AbstractEngineJsonRpcMethod used by the ExecutionClientHandler might have different type parameter from the one supplied to the EngineJsonRpcMethodsResolver::getMethod which could lead to class cast exceptions.
Example:
In the example above, the dummyRpcMethod shoudl have ReturnTypeClass instead of BadReturnTypeClass.
We could make the EngineJsonRpcMethodsResolver detect the RPC method return type dynamically.
Possibles approaches could be to define the return type in the method itself or make use of reflection to dynamically determine it...
The text was updated successfully, but these errors were encountered:
Currently the json RPC methods extending the abstract
AbstractEngineJsonRpcMethod
used by theExecutionClientHandler
might have different type parameter from the one supplied to theEngineJsonRpcMethodsResolver::getMethod
which could lead to class cast exceptions.Example:
In the example above, the
dummyRpcMethod
shoudl haveReturnTypeClass
instead ofBadReturnTypeClass
.We could make the
EngineJsonRpcMethodsResolver
detect the RPC method return type dynamically.Possibles approaches could be to define the return type in the method itself or make use of reflection to dynamically determine it...
The text was updated successfully, but these errors were encountered: