Bug 12433

Summary: I18N locale tag returns wrong object type (should be Locale)
Product: Taglibs Reporter: Janet Geddes <geddesje>
Component: I18N TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: CLOSED FIXED    
Severity: blocker CC: evansj
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Patch to make Locale tag return a Locale

Description Janet Geddes 2002-09-09 12:40:56 UTC
The locale tag doc indicates that it returns a Locale object 
(java.util.Locale, i presumed), but the LocaleEI class actually specifies 
java.lang.String as the return type for the id.  I am using the localeRef 
attribute to pull the java.util.Locale object from the session, and need for the 
tag to return the object, not the string...
Comment 1 Jon Evans 2002-11-12 10:25:14 UTC
Created attachment 3817 [details]
Patch to make Locale tag return a Locale
Comment 2 Jon Evans 2002-11-12 10:26:15 UTC
I have attached a patch above which fixes this bug.
Comment 3 Jon Evans 2002-12-09 15:36:12 UTC
The patch previously attached still applies cleanly to the current CVS, IMHO it
should be applied, it is clearly the correct fix.
Comment 4 Glenn Nielsen 2002-12-17 04:00:31 UTC
Makes sense. Patch applied.  Thanks.