users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Support for Locale parameter

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Tue, 20 Dec 2011 16:57:08 +0100

Please, file a MINOR issue.

Marek

On Tue 20 Dec 2011 12:01:47 PM CET, Sergey Beryozkin wrote:
> Hi,
>
> we have a case where a user would like to write a signature like this:
>
> someMethod(@PathParam("locale") Locale locale) {}
>
> The specification mandates that factory methods (constructor, valueOf, etc) are checked for the types which are not
> 'officially' supported by the spec. java.util.Locale constructor accepting a single String ignores
> the qualifiers such as "us" in "en_us".
>
> While this issue can be handled by the implementation, I propose to get the spec mandating the support for
> java.util.Locale
> Comments ?
> Sergey