Re: Bug in ResourceBundle.getBundle()
Shawn Silverman <[email protected]> Sun, 13 Jun 2004 16:30:47 -0500
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
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. -Shawn On 9-Jun-04, at 7:10 AM, Kris Ardis wrote: > Shawn > I tried this out and it does seem to correctly find 'MyBundle' if > present. > It's just that the error message prints out the locale string. Have > you > seen a case where it doesn't actually find the correct bundle? > > Kris > > ----- Original Message ----- > From: "Shawn Silverman" <[email protected]> > To: "TINI List" <tini-6tN4nzCoH/[email protected]> > Sent: Friday, May 21, 2004 3:42 PM > Subject: [TINI]Bug in ResourceBundle.getBundle() > > >> The ResourceBundle.getBundle() call does not appear to follow the >> correct search pattern. Say I request a bundle named "Bundle": >> >> ResourceBundle.getBundle("MyBundle"); >> >> There is a MissingResourceException thrown saying it cannot find >> "MyBundle_en_US". It should find the class "MyBundle" regardless. >> >> Thanks, >> -Shawn _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini