I can make your gcj-compiled binaries much smaller.

Adam Megacz gcj@lists.megacz.com
Tue Jan 14 10:27:00 GMT 2003


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



More information about the Java mailing list