From: Per Bothner <per@bothner.com>
To: tromey@redhat.com
Cc: Eric Blake <ebb9@email.byu.edu>,
Adam Megacz <gcj@lists.megacz.com>,
java@gcc.gnu.org
Subject: Re: MissingResourceException with Date under mingw port
Date: Wed, 10 Apr 2002 18:21:00 -0000 [thread overview]
Message-ID: <3CB4CC4F.1070707@bothner.com> (raw)
In-Reply-To: <878z7v405f.fsf@creche.redhat.com>
> Eric> static
> Eric> {
> Eric> gnu.java.locale.Calendar c = null;
> Eric> }
I don't particularly care for this approach.
The correct general solution is to support some option
to specify classes that should be loaded. The gcj
wrapper can easily mangle this into a '-u' linker option.
I don't understand how forcing gnu.java.locale.Calendar
to get loaded really helps since you're don't know which
locale you will need. However, I suggest the following:
Add a static method to gnu.java.locale.Calendar:
public static ResourceBundle getBundle(Locale locale)
{
// This can possibly be optimized.
return getBundle("gnu.java.locale.Calendar", locale);
}
and in Date.java replace getBundle calls:
ResourceBundle rb = ResourceBundle.getBundle(bundleName, locale);
by:
ResourceBundle rb = gnu.java.locale.Calendar.getBundle(locale);
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
next prev parent reply other threads:[~2002-04-10 23:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-10 10:31 Adam King
2002-04-10 10:42 ` Adam Megacz
2002-04-10 10:49 ` Tom Tromey
2002-04-10 12:25 ` Eric Blake
2002-04-10 12:55 ` Adam Megacz
2002-04-10 15:56 ` Eric Blake
2002-04-10 16:11 ` Tom Tromey
2002-04-10 16:35 ` Tom Tromey
2002-04-10 18:21 ` Per Bothner [this message]
2002-04-10 11:11 ` Mark Wielaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3CB4CC4F.1070707@bothner.com \
--to=per@bothner.com \
--cc=ebb9@email.byu.edu \
--cc=gcj@lists.megacz.com \
--cc=java@gcc.gnu.org \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).