-
Bug
-
Resolution: Done
-
Major
-
3.6.3.Final, 4.0.0.CR2
-
None
-
Compatibility/Configuration
-
RESTEasy currently doesn't support using ParamConverters for any kind of primitive type. IMO this is a violation of the JAX-RS spec. The API docs of ParamConverterProvider doesn't restrict the types for which users can register custom converters. Jersey for example supports converters for all types, including primitives.
I think that all the problematic code can be found in the StringParameterInjector.
In case of primitive types, it doesn't even try to lookup the ParamConverter:
And later on it converts primitive types using StringToPrimitive BEFORE even checking if there is a ParamConverter:
Thoughts?