Re: Bug in ResourceBundle.getBundle()
Shawn Silverman <[email protected]> Wed, 16 Jun 2004 13:46:40 -0500
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Yes, I realized that when I wrote the email. I probably wasn't clear in my sentences below. :) I had missed that part of the spec when I wrote my original email. Thanks, -Shawn On 16-Jun-04, at 11:24 AM, Bryan Armstrong wrote: > Shawn Silverman wrote: >> I wrote a small test class, and it appears that my error may have >> been related to the fact that getString() does not return a null if >> the corresponding value cannot be found. It throws a >> MissingResourceException. > > > It looks like it follows the JDK spec by throwing the exception: > > > getString > > public final String getString(String key) > > Gets a string for the given key from this resource bundle or one > of its parents. Calling this method is equivalent to calling > > (String) getObject(key). > > Parameters: > key - the key for the desired string > Returns: > the string for the given key > Throws: > NullPointerException - if key is null > MissingResourceException - if no object for the given key can > be found > ClassCastException - if the object found for the given key is > not a string > > > > -- > -- > Bryan Armstrong > bryan.armstrong-6tN4nzCoH/[email protected] > > _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini