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




On Tue, 11 Dec 2001, Bryce McKinlay wrote:
> Weird. I don't think there should be a definition in natClass.o:
> 
> $ nm Class.o | c++filt | grep Class::Class
> 000004b0 T java::lang::Class::Class()
> $ nm natClass.o | c++filt | grep Class::Class
> 00000000 W java::lang::Class::Class()
> 00000000 W java::lang::Class::Class()
           ^
Mingw doesn't have weak symbols.

This should be inlined, but g++ still wants to generate a method body.
I'd guess this is needed to prevent link errors in case other program
units are compiled with inlining turned off.

Jeff


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