[ http://mc4j.org/jira/browse/STS-230?page=all ]
Tim Fennell resolved STS-230:
-----------------------------
Resolution: Fixed
Fix Version: Release 1.4
Fixed. If the Locale is lacking country the currency symbol is now defaulted
to $. Since $ isn't ever used as a non-currency symbol in numbers this should
be safe, and still helpful to the significant portion of the world that uses
dollars.
> IllegalArgumentException in NumberTypeConverterSupport if locale is missing
> language
> ------------------------------------------------------------------------------------
>
> Key: STS-230
> URL: http://mc4j.org/jira/browse/STS-230
> Project: Stripes
> Type: Bug
> Components: Validation
> Versions: Release 1.3.2
> Environment: any
> Reporter: Jesper Udby
> Assignee: Tim Fennell
> Priority: Trivial
> Fix For: Release 1.4
> Attachments: NumberTypeConverterSupport.java
>
> If locale picked by LocalePicker does not contain a valid/supprted country
> code, the NumberTypeConverterSupport.setLocale() methods throws an
> IllegalArgumentException originating from Currency.getInstance().
> According to Currency javadoc, this is expected behavior.
> This basically disabled the use of locales w/o country code (e.g. "en", "da",
> "se" etc....) in a Stripes application.
> I've made a "local fix" to my Stripes installation by changing the code to
> handle this by simply not trying to remove currency information, if no valid
> currency could be obtained...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development