This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: MissingResourceException with Date under mingw port
- From: Tom Tromey <tromey at redhat dot com>
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: 10 Apr 2002 11:45:18 -0600
- Subject: Re: MissingResourceException with Date under mingw port
- References: <20020410131202.C24689@dreammechanics.com> <86r8lnzcpo.fsf@megacz.com>
- Reply-to: tromey at redhat dot com
>>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
Adam> Here's the standard prelude I throw into all my gcj programs to
Adam> force the linker to include all the required classes:
Adam> [ ... ]
Adam> To the other GCJ people: are there any disadvantages to putting
Adam> private static foo.class references in the java.* classes so that
Adam> static links work properly without this hack?
We already do this; look at FirstThread.java. So far we've only done
it for classes needed for bootstrapping. There's a tension here
because people might want to use static linking to make their programs
smaller; the more classes we list like this the less possible that is.
On the to-do list for a long time has been adding a command-line
option to gcj so you could specify classes which we would force to be
linked in.
I don't have an opinion right now on whether we should add your
classes to FirstThread. I'd love to hear arguments either way.
Long term I think we need to make libgcj into a DLL on Windows.
Tom