dev@jsr311.java.net

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

Hi,

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 ?

Paul.

[1] https://jsr311.dev.java.net/issues/show_bug.cgi?id=13

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109