This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MissingResourceException with Date under mingw port


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]