MissingResourceException with Date under mingw port
Tom Tromey
tromey@redhat.com
Wed Apr 10 10:49:00 GMT 2002
>>>>> "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
More information about the Java
mailing list