Closed GoogleCodeExporter closed 8 years ago
This will be taken into consideration for a future release of the library. In
the mean time, with careful planning you can take advantage of the
allowExtraParams functionality of the JsonRpcServer and put your optional
parameters at the end of your method signature. I do realise that there are
issues with this "solution" however. Another option is taking a single object
as a parameter to the method ie:
String someMethod(Whatever argument);
where Whatever is:
class Whatever {
String optionalParam;
String mandatoryParam;
}
or a variation of the above.
I do understand that neither of these workarounds are perfect - they are merely
workarounds.
Original comment by brian.di...@gmail.com
on 8 Feb 2012 at 8:14
This has been address in 0.20-SNAPSHOT via the "allowLessParmaters" setting.
Please test it.
Original comment by brian.di...@gmail.com
on 9 Feb 2012 at 2:24
Original comment by brian.di...@gmail.com
on 25 May 2012 at 2:51
Original comment by brian.di...@gmail.com
on 26 May 2012 at 2:44
Original issue reported on code.google.com by
erl...@isaksson.info
on 5 Jan 2012 at 5:30