g++ 4.1 compiling against libgcj; classes cannot inherit from Object?

Andrew Haley aph@redhat.com
Fri Dec 9 11:04:00 GMT 2005


tsuraan writes:
 > I'm trying to make a simple hello world program wherein I have a C++
 > object that inherits from java::lang::Object.

That won't work.  Objects are either Java or C++.  You may write all
of the methods of a Java object in C++ if you wish, but it's still a
Java object.

Andrew.



More information about the Java mailing list