quick little CNI question
Tom Tromey
tromey@cygnus.com
Sat Apr 1 00:00:00 GMT 2000
Anthony> (actually, Bryce, was there something else.... maybe to do
Anthony> with the interpreter?)
Yeah. I had a list of issues on the runtime side. The interpreter
was the big one as I recall.
Anthony> Once these changes are in I believe we can look at an
Anthony> interface call interface from CNI.
Anthony> That being said, perhaps the newly implemented reflection
Anthony> code will let you call interfaces from C++. Tom?
It seems like it should work, but I admit I forgot to test it. Sigh.
I've made a note and I'll write a test case (or a PR, at least) once I
clear my current list (i.e., it will be a while).
If you don't mind having your code potentially break (because you'll
be relying on libgcj internals), you can also follow the code sequence
the compiler uses: call _Jv_LookupInterfaceMethod and treat the result
as a function pointer.
Tom
More information about the Java
mailing list