I wanted my error messages in validation error response to have appropriate
parameter/field names. DefaultParameterNameProvider is really limited. It's
not even attempting to read parameter names from debug information or use
java 8 parameter name discovery when available.
When I startup servlet container with this Jersey app deployed, my custom
parameter name provider is sometimes respected, but problem is that
sometimes in another startup of the container with same unchanged app, a
default parameter name provider gets used.
Am I doing something wrong? Is this a known bug?
Any tips how to workaround this problem are more than welcome.