This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: I can make your gcj-compiled binaries much smaller.
Andrew Haley <aph@redhat.com> writes:
> I don't see how this can work, because you don't know what libraries
> might have dependencies that they resolve by reflection. Even the gcj
> startup code does this.
You have this problem whenever you link statically, whether you use my
technique or not.
The solution is to make a reference like this:
static final class foo = TheClassThatIsReferencedByReflection.class;
But like I said, my proposal doesn't change the situation at all.
- a