Support for java.lang.Character as a parameter

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 03 Oct 2007 11:47:43 +0200


Any issue [1] was recently logged in Jersey about support for
java.lang.Character for UriParam/QueryParam etc.

"The java.lang.Character is not a JAX-RS supported type. We can
certainly print out better error messages (which is one of the goals of
the abstract resource model).

Supporting java.lang.Character will add special rules particular to this
case (currently the rules are very general and not specific to any
particular type) and there is an edge case where there is inconsistency
between encoded and decoded space. If the encoded path is "%20" with a
template "{id}" and a "@Encoded @UriParam("id") Character c" then a
runtime error will occur."

What do people think ? Should we specify such support for
java.lang.Character ?



| ? + ? = To question
    Paul Sandoz