internal compiler error: can't find class$

Tom Tromey tromey@redhat.com
Thu Sep 2 15:57:00 GMT 2004


>>>>> "Thomas" == Thomas Léauté <thleaute@csail.mit.edu> writes:

Thomas> Here I am instantiating a new "coutUI" object; coutUI is a c++ class
Thomas> which is a sub-class of the java interface OutputInterface,
Thomas> implemented in the OutputInterface.java file:
If I understand correctly, coutUI is entirely written in C++.
However, you can't derive a pure C++ class from a Java class.
The reason is, a Java class has a bunch of metadata associated with it
(the Class instance, various reflection tables, etc) that g++ doesn't
know how to generate. While it would most likely be possible to
implement this, nobody has done it, and it has always been a very low
priority for us.
Instead of doing this, just write your class in Java and mark all the
methods as native. gcj will generate the metadata and all will be
well.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /