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


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