jsonrpc4j
jsonrpc4j copied to clipboard
Support Named Parameters based on Debug Information
Currently named parameter support only works based on annotations. However, it would be useful to be able to support this without needing to have a compile-time dependency on these annotations, and instead simply building with debug support turned on.
This is surprisingly easy - the java.lang.reflect.Parameter object has a getName() method that returns the name from the source code, and this can be used instead of the annotation values if there are no annotations present. In theory, from what I can see, everything else should just work after that.
Cheers
Happy to accept a pull request