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


>> 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


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