dev@jsr311.java.net

Re: Support for java.lang.Character as a parameter

From: Ryan McDonough <ryan_at_damnhandy.com>
Date: Wed, 3 Oct 2007 18:06:06 -0400

I'm on the fence, but I am close to agreeing with Patrick on this one.
Adding support for Character would help enforce type safety on the Java
side, but it's really splitting hairs. Honestly, I can't think of a
significant use case where this would really provide a whole lot of value.

Ryan-



On 10/3/07, Patrick Mueller <pmuellr_at_yahoo.com> wrote:
>
> On Oct 3, 2007, at 5:47 AM, Paul Sandoz wrote:
>
> > 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).
> >
> ...
> >
> > What do people think ? Should we specify such support for
> > java.lang.Character ?
>
> It's a confusion factor; I'd continue to not support it. Many
> languages don't have a notion of character separate from string, and
> so you'd need to describe the special constraint for those languages
> interfaces as "a string of length 1". Feh.
>
> Patrick Mueller
> http://muellerware.org/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
>
>


-- 
Ryan J. McDonough
http://www.damnhandy.com