I am trying to return a class's generic type from a function's parameter. Here is an example.
Unfortunately, it is not working.
Do you support this notation, or is this a bug in the extension?
I am trying to return a class's generic type from a function's parameter. Here is an example.
Unfortunately, it is not working.
Do you support this notation, or is this a bug in the extension?
Ray thank you for the example.
This feature is supported;
The type of Handler<T>
might be lost with create()
or setTaskId()
. Are those annotated as well?
Yes they are both annotated
Here is a stripped down version and it still does not work.
Ray I see! thanks.
The problem might be, that the T
needs to be inferred down to the base class type.
I'll prepare some unit tests and make it working.
JakubMisek implemented, the feature will be available in the next update/pre-release.
thanks!