Integration with Java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Integration with Java

Erol Akarsu-2
Hi,

Could you explain what the latest scala compiler/intepreter brings about
Java-Scala integration?

I would like to know what is the limititations/requirements in these cases :

1- Somebody tries to define a Scala class by extending an arbitrary Java class

2- Somebody tries to define a Java class by extending a Scala class

3- Somebody tries to access a Java object from Scala and vice versa.

All these cases can be handled by the latest Java compiler?
Could you give some specific examples how they can be achieved?

Thanks

Erol Akarsu

Reply | Threaded
Open this post in threaded view
|

Re: Integration with Java

Burak Emir
Hello,

http://scala.sygneca.com//faqs/interoperability
http://scala.sygneca.com/faqs/scala-to-java-mapping (new)

all your points work, but it is helpful to know the mapping

we should add more documentation there.

meanwhile, it is helpful to compile your stuff and then check out the
signature of the classes using javap

cheers,
B

Erol Akarsu wrote:

>Hi,
>
>Could you explain what the latest scala compiler/intepreter brings about
>Java-Scala integration?
>
>I would like to know what is the limititations/requirements in these cases :
>
>1- Somebody tries to define a Scala class by extending an arbitrary Java class
>
>2- Somebody tries to define a Java class by extending a Scala class
>
>3- Somebody tries to access a Java object from Scala and vice versa.
>
>All these cases can be handled by the latest Java compiler?
>Could you give some specific examples how they can be achieved?
>
>Thanks
>
>Erol Akarsu
>
>  
>


--
Burak Emir

http://lamp.epfl.ch/~emir