This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: jc1 and different vm langauges


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/
> 
> 
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]