Class.h and Class.java both define zero-arg constructor
Adam Megacz
gcj@lists.megacz.com
Mon Dec 10 18:54:00 GMT 2001
Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> 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()
Do you see the definition of Class::Class() in
gcc/libjava/java/lang/Class.h (around line 221)?
I'm doing a static build for mingw; perhaps on other platforms the
constructor gets inlined or otherwise stripped.
I'm curious to know the "right solution" to this problem, since I'll
want to incorporate it into the patch I submit next week.
- a
More information about the Java
mailing list