This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ and C++ (calling Java from C++)
- From: Lothar Werzinger <lothar at tradescape dot biz>
- To: java at gcc dot gnu dot org
- Date: Wed, 30 Nov 2005 15:58:01 -0800
- Subject: Re: GCJ and C++ (calling Java from C++)
- References: <200511281612.37450.lothar@tradescape.biz> <17292.14468.381819.986825@zapata.pink> <200511290933.40573.lothar@tradescape.biz>
I did check the generated headers and found something peculiar that may
contribute to the problem I have calling the Java classes from C++.
In Java the Addressable , Library and LibraryImpl classes looks like this:
public interface Addressable extends EObject
{
...
public interface Library extends Addressable
{
...
public class LibraryImpl extends EObjectImpl implements Library
{
...
in the generated headers from gcjh i get this:
class org::eclipse::emf::examples::extlibrary::Addressable
: public ::java::lang::Object
{
...
class org::eclipse::emf::examples::extlibrary::Library
: public ::java::lang::Object
{
...
class org::eclipse::emf::examples::extlibrary::impl::LibraryImpl
: public ::org::eclipse::emf::ecore::impl::EObjectImpl
{
...
So the LibraryImpl class misses the inheritance to the interface Library, the
Library class misses the inheritance to the interface Addressable and the
Addressable class misses the inheritance to EObject
Thus I have the following questions:
1)
Can this be the cause of the problems I have?
2)
Is there a way to fix/work around this problem?
Thanks in advance!
Lothar
--
Lothar Werzinger Dipl.-Ing. Univ.
framework & platform architect
Tradescape Inc.
111 West St. John Street, Suite 200
San Jose, Ca 95113
email: lothar@tradescape.biz