Class.h and Class.java both define zero-arg constructor

Adam Megacz gcj@lists.megacz.com
Mon Dec 10 20:56:00 GMT 2001


Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> >How about the line

> > ((_Jv_Self *)this)->vtable_ptr -= 2 * sizeof (void *);

> >is that cruft, or will I run into problems with it missing?

> It is definatly needed if the C++ constructor is being called. If the 
> Java constructor gets called, the vtable pointer might not get set like 
> C++ expects, so it may be neccessary to add something like

Could this be a plausible explanation why my binaries segfaults on
startup? (JvRunMain manipulates class objects...)
 - a


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /