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: GCJ and C++ (calling Java from C++)


Lothar Werzinger writes:
 > On Monday 05 December 2005 03:39, Andrew Haley wrote:
 > > Lothar Werzinger writes:
 > >  >From what I learned reading about CNI calling methods on interfaces
 > >  >requires a special dispatch table called otable.
 > >
 > > I don't think so.  As far as I'm aware the otable is only ever
 > > involved when a file has been compiled with -findirect dispatch.  CNI
 > > doesn't use indirect dispatch.  Without indirect dispatch, we'd expect
 > > the otable to be null.
 > 
 > The jar and the Java file are compiled with -findirect-dispatch, so I think 
 > having a null otable is bad. You should be able to see that in the build.xml 
 > in the project I sent you last time.
 > 
 > > Which line?  Does the failure occur in the call to get_name?
 > 
 > As said in previous postings it fails either in 
 > 
 >     JvInitClass(LibraryTestClass);
 > 
 > or in
 > 
 >     String * p_name = p_library->getName();

But which?  Put a breakpoint on the first line, then step over it.

Andrew.


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