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
Due to how we implement it, all its return types are Uni<?> instead of the more useful Uni<R> for methods like <R> get(Class<R>), forcing users to cast the return types to the right type:
UniInvokerinvocation = target.request().rx(UniInvoker.class);
Uni<String> ret = (Uni<String>) invocation.get(String.class);
Due to how we implement it, all its return types are
Uni<?>
instead of the more usefulUni<R>
for methods like<R> get(Class<R>)
, forcing users to cast the return types to the right type:This is because we implemented it with:
Now, for some reason the JAXRS interface is:
Which is pretty useless. We could mitigate this by making
UniInvoker
generic.Or we could do like for
MultiInvoker
(for some reason this does pass the Java type system):Perhaps we should do both (generify and fix the signature via that weirdly allowed covariant override)?
The text was updated successfully, but these errors were encountered: