This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Question about EH


> The logical solution is to make sure there is a pointer from the C++
> type descriptors to the Java Class object.  An even better solution
> to *embed* the C++ typeinfo in the Java class, perhapos using
> multiple inhgeritance

I'm not sure which one would be better, but adding the pointer to the
C++ typeinfo is certainly easy:

class __java_type_info:public __si_type_info{
  ::java::lang::Class *klass;
};

I don't know how interfaces are reflected in CNI, but having a special
Java typeinfo appears to allow dynamic-casting between Java instance
pointers and Java interface pointers.

Regards,
Martin


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