From: Eric Blake <ebb9@email.byu.edu>
To: Adam Megacz <gcj@lists.megacz.com>
Cc: java@gcc.gnu.org
Subject: Re: MissingResourceException with Date under mingw port
Date: Wed, 10 Apr 2002 15:56:00 -0000 [thread overview]
Message-ID: <3CB498AD.143AB04F@email.byu.edu> (raw)
In-Reply-To: <86d6x7z7fw.fsf@megacz.com>
Adam Megacz wrote:
>
> Eric Blake <ebb9@email.byu.edu> writes:
> > So why not add this line to Calendar?
> > private static Class c1 = gnu.java.locale.Calendar.class;
>
> Sounds good to me.
I propose this patch (should it go on the branch, or just mainline?):
2002-04-10 Eric Blake <ebb9@email.byu.edu>
* java/util/Calendar.java (bundleName): Make reference to bundle
explicit to aid the linker.
Index: java/util/Calendar.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/Calendar.java,v
retrieving revision 1.12
diff -u -r1.12 Calendar.java
--- java/util/Calendar.java 22 Jan 2002 22:40:38 -0000 1.12
+++ java/util/Calendar.java 10 Apr 2002 19:49:06 -0000
@@ -1,5 +1,5 @@
/* java.util.Calendar
- Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -362,9 +362,12 @@
static final long serialVersionUID = -1807547505821590642L;
/**
- * The name of the resource bundle.
+ * The name of the resource bundle. Since the bundle class is only used by
+ * reflection, we use this expression instead of a string literal so that
+ * the linker will be aware of the dependence.
*/
- private static final String bundleName = "gnu.java.locale.Calendar";
+ private static final String bundleName
+ = gnu.java.locale.Calendar.class.getName();
/**
* Constructs a new Calendar with the default time zone and the default
--
This signature intentionally left boring.
Eric Blake ebb9@email.byu.edu
BYU student, free software programmer
next prev parent reply other threads:[~2002-04-10 19:55 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 [this message]
2002-04-10 16:11 ` Tom Tromey
2002-04-10 16:35 ` Tom Tromey
2002-04-10 18:21 ` Per Bothner
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=3CB498AD.143AB04F@email.byu.edu \
--to=ebb9@email.byu.edu \
--cc=gcj@lists.megacz.com \
--cc=java@gcc.gnu.org \
/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).