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
 Assigned to: Tim Fennell 
    Priority: Trivial


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

Reply via email to