Class.h and Class.java both define zero-arg constructor
Adam Megacz
gcj@lists.megacz.com
Mon Dec 10 20:17:00 GMT 2001
Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> Yes. In fact I remember writing that comment ;-)
And people wonder why developing with open source tools is so much
more pleasant... =)
> What happens if you delete the definition in Class.h and replace it
> with a declaration instead?
Ye gads, it links properly. Unfortunately, it doesn't run... see my
next post.
> At the moment it looks like either the Class.h one gets inlined or
> the Class.java one gets called. Calling the Class.java one shouldn't
> be a problem from C++ even though it is private, assuming it works.
How about the line
((_Jv_Self *)this)->vtable_ptr -= 2 * sizeof (void *);
is that cruft, or will I run into problems with it missing?
- a
More information about the Java
mailing list