restlet/restlet-framework-java — Issue #441: JAX-RS extension does not map Objects with non-trivial constructors
Author: javamonkey79
Created: 2012-03-08 08:24:41+00:00
State: open
Labels: 2.2, Feature, JAX-RS extension

Considering the following use case (modified from the user documentation):

```java
@GET
@Produces("text/html")
@Consumes(MediaType.APPLICATION_JSON)
public String getHtml(@HeaderParam("point")Point point) {
return "

\n"
+ "This is an easy resource (as html text).\n"
+ "

";
}
```

The receiving server side code will not attempt to load the intended Object except from a single String constructor or valueOf method.

I've debugged it and traced the problem down to:

org.restlet.ext.jaxrs.internal.wrappers.params.ParameterList.AbstractParamGetter.convertParamValueInner