Re: Bug in ResourceBundle.getBundle()
Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]> Wed, 16 Jun 2004 11:24:50 -0500
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
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