This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Class.h and Class.java both define zero-arg constructor
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Cc: Adam Megacz <gcj at lists dot megacz dot com>, java at gcc dot gnu dot org
- Date: Mon, 10 Dec 2001 23:40:51 -0500 (EST)
- Subject: 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