You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/11/30 11:02:43 UTC

DO NOT REPLY [Bug 37709] New: - [resources] Remove TimeZone from Resources API

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37709>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37709

           Summary: [resources] Remove TimeZone from Resources API
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Resources
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: niallp@apache.org


IMO TimeZone should be removed from the Resources API.

Discussed in the following thread:
http://www.mail-archive.com/commons-dev%40jakarta.apache.org/msg70528.html

I'm proposing the following methods...

public byte[] getBytes(String key, Locale locale, TimeZone timeZone);
public InputStream getInputStream(String key, Locale locale, TimeZone timeZone);
public Object getObject(String key, Locale locale, TimeZone timeZone);
public Reader getReader(String key, Locale locale, TimeZone timeZone);
public String getString(String key, Locale locale, TimeZone timeZone);

...change to:

public byte[] getBytes(String key, Locale locale);
public InputStream getInputStream(String key, Locale locale);
public Object getObject(String key, Locale locale);
public Reader getReader(String key, Locale locale);
public String getString(String key, Locale locale);

Craig indicates TimeZone is for use with java.text.MessageFormat - in that case 
it would make more sense IMO to have TimeZone in the Messages API which uses 
MessageFormat, rather than resources which doesn't.

Marking this as "blocker" because I think it needs to be decided one way or the 
other before resources 1.0.0 is released.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org