By the way, every time a source tree uses java.util.Date or
java.util.Calendar, I have to create a hard reference to these classes, to
force the runtime to load them:
private static Class x1=gnu.java.locale.Calendar.class;
private static Class x2=gnu.java.locale.LocaleInformation.class;
These classes seems to be loaded dynamically through reflection, as I've
noticed in the libjava sources.
Is it possible to add these hard references in libjava itself? That would
enable many more source trees to compile natively, without patching.
Would it make sense to always automatically link in a special
gnu.java.StaticLinkRequired class within libgcj when statically linking?
That way, average code will work and any further changes to reflection
requirements are located in a single location.