This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/24698] [4.1/4.2 regression] SIGABRT when using ResourceBundle.getBundle with a nonexistant key
- From: "bero at arklinux dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Dec 2005 09:59:15 -0000
- Subject: [Bug java/24698] [4.1/4.2 regression] SIGABRT when using ResourceBundle.getBundle with a nonexistant key
- References: <bug-24698-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from bero at arklinux dot org 2005-12-16 09:59 -------
This happens 100% reproducably when using ResourceBundle.getString on an
existing bundle with a nonexistant key -- this is enough to reproduce, no need
for an external jar or anything:
===============================
import java.util.*;
class test {
public static void main(String args[]) {
ResourceBundle
bundle=ResourceBundle.getBundle("gnu.java.locale.LocaleInformation");
bundle.getString("This key does not exist.");
}
}
===============================
Note that using getObject instead of getString works.
--
bero at arklinux dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24698