Trying to compile those to files results in following error in generated RemoteInterface_Proxy.java:
error: cannot find symbol
public void onNext(T list_0) {
^
symbol: class T
location: class RemoteInterface_Proxy
It looks like the T generic parameter is not replaced with ArrayList<?> in Proxy class.
I've specified an upper bounded-type List<?> to simplify the example but actually in my real code the upper bounded-type is a remoter interface. This means that I would expect the generated proxy code to deal with this and work with binder in the remote procedure onNext rather than trying to serialize the input parameter.
I'm not familiar with java annotation processor but I can try to give a hand to fix this, if needed.
Dear @josesamuel,
Thank you for this great library !
I've faced to some build issue with remoter code generation while trying to create some remote interface inheriting some generic interface.
Here is a trivial code example bringing out the issue:
Trying to compile those to files results in following error in generated RemoteInterface_Proxy.java:
It looks like the
T
generic parameter is not replaced withArrayList<?>
in Proxy class.I've specified an upper bounded-type
List<?>
to simplify the example but actually in my real code the upper bounded-type is a remoter interface. This means that I would expect the generated proxy code to deal with this and work with binder in the remote procedureonNext
rather than trying to serialize the input parameter.I'm not familiar with java annotation processor but I can try to give a hand to fix this, if needed.
Best Regards,