jc1 and different vm langauges

Jakob Praher jp@hapra.at
Sun Mar 12 10:21:00 GMT 2006


Ranjit Mathew schrieb:
> Jakob Praher wrote:
>> This was PR java/9861 and was fixed some time back (though
> not marked fixed for some reason, I'm not sure why).
>> See:
>> http://gcc.gnu.org/ml/gcc-patches/2005-09/msg01448.html
> http://gcc.gnu.org/ml/gcc-patches/2005-09/msg01716.html
> http://gcc.gnu.org/ml/java-patches/2005-q4/msg00314.html
>ah ok. Interesting. The return type is now always encoded. And the cp
frontend has a TYPE_FOR_JAVA tree check macro, which checks whether a
call from c++ is to a java name. If so the call is mangled like java too.
Ah yes. I saw it there is an extern "Java" :-)
extern "Java" makes a type to pass the TYPE_FOR_JAVA macro?
Since _JvObjectPrefix is extern Java this means all classes deriving
from it are too?
If I declare a class, for instance like this:
#include <java/lang/Object.h>
class Foo : public java::lang::Object
{
 virtual int test( );
};
test would be automatically be of the Java name mangling?
Cause java::lang::Object is too declared outside of extern "Java".
-- Jakob
> HTH,
> Ranjit.
>> --
> Ranjit Mathew Email: rmathew AT gmail DOT com
>> Bangalore, INDIA. Web: http://rmathew.com/
>>>>


More information about the Java mailing list

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