users@jax-rs-spec.java.net

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

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Tue, 20 Dec 2011 11:01:47 +0000

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