This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: g++ 4.1 compiling against libgcj; classes cannot inherit from Object?
- From: Andrew Haley <aph at redhat dot com>
- To: tsuraan <tsuraan at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 9 Dec 2005 11:04:03 +0000
- Subject: Re: g++ 4.1 compiling against libgcj; classes cannot inherit from Object?
- References: <84fb38e30512081231o2f93c80cw@mail.gmail.com>
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.