Bug 12433 - I18N locale tag returns wrong object type (should be Locale)
Summary: I18N locale tag returns wrong object type (should be Locale)
Status: CLOSED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: I18N Taglib (show other bugs)
Version: 1.0
Hardware: PC All
: P3 blocker (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-09 12:40 UTC by Janet Geddes
Modified: 2005-03-20 17:06 UTC (History)
1 user (show)



Attachments
Patch to make Locale tag return a Locale (736 bytes, patch)
2002-11-12 10:25 UTC, Jon Evans
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.