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



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


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