undefined reference to vtable
Per Bothner
per@bothner.com
Wed Aug 11 17:25:00 GMT 2004
Shaun Jackman wrote:
> From what I see though, you cannot implement a new Java class
> entirely in C++,
True.
> which is necessary for example to create a small
> callback (Listener) class.
It does not follow that you need to write the class in C++.
You can either
(a) write the callback class as a Java class with a native method;
(b) store a pointer to a C++ function or method as a RawData field,
having it be invoked by a native method,
> I'd like to make a feature request for the
> ability to write Java classes entirely in C++.
Request all you want, but it's a fair amount of work, and I don't
see it happening in the foreseeable future (i.e. before the end
of 2005) - unless you do it yourself or pay somebody to do it.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Java
mailing list