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
>> However, at the same time if I turn the constructor in Class.h into a
>> declaration, the vtable ends up wrong. I don't understand why :-(.
Bryce> Because Java constructors don't set the vtable at all? We do
Bryce> that in _Jv_AllocObj. So the fix is to set the vtable manually,
Bryce> but not do the "wind it back" hack?
Yeah, I forgot about that. This fix works, and I'm checking it in.
Thanks.
Tom