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


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