jsonrpc4j icon indicating copy to clipboard operation
jsonrpc4j copied to clipboard

Support Named Parameters based on Debug Information

Open sazzer opened this issue 6 years ago • 1 comments

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

sazzer avatar Feb 21 '19 10:02 sazzer

Happy to accept a pull request

briandilley avatar Apr 12 '19 14:04 briandilley