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: Class.h and Class.java both define zero-arg constructor


>>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:

Adam> Do you see the definition of Class::Class() in
Adam> gcc/libjava/java/lang/Class.h (around line 221)?

It is definitely there.

Adam> I'm doing a static build for mingw; perhaps on other platforms
Adam> the constructor gets inlined or otherwise stripped.

Yes, it should be inlined.  I think it shouldn't be emitted in
natClass.o.  Do you know why it is happening?

Adam> I'm curious to know the "right solution" to this problem, since
Adam> I'll want to incorporate it into the patch I submit next week.

Ideally it would work as is just like it does on other platforms.

Less ideally, we could add a dummy argument to the constructor in
Class.h.  We can't remove the constructor from Class.java as that
constructor is required by the spec.

Tom


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