tag:blogger.com,1999:blog-6893032696317132921.post5368076090930469213..comments2024-03-11T08:01:37.469-04:00Comments on Gabriel's software development blog: Playing with SCALA: interoperation with JavaAnonymoushttp://www.blogger.com/profile/17525961934302794120noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6893032696317132921.post-26037667695663404942008-08-11T05:49:00.000-04:002008-08-11T05:49:00.000-04:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6893032696317132921.post-88182987960204940112008-01-09T15:17:00.000-05:002008-01-09T15:17:00.000-05:00That´s good...I will ask you lots of question next...That´s good...<BR/>I will ask you lots of question next days...Jorge Ubedahttps://www.blogger.com/profile/16457542679928501488noreply@blogger.comtag:blogger.com,1999:blog-6893032696317132921.post-38913388697819811772008-01-09T13:37:00.000-05:002008-01-09T13:37:00.000-05:00Realize that MyScalaObj.sort is calling the static...Realize that MyScalaObj.sort is calling the static "mirror method", which is in turn calling the real method on the object instance (which i believe is stored in static field MyScalaObj$.MODULE$)<BR/><BR/>If you create the "companion" class MyScalaObj, then that will create a java class of the same name, and the "mirror class" won't be generated.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6893032696317132921.post-66388491701533635702008-01-09T07:24:00.000-05:002008-01-09T07:24:00.000-05:00Gnz, you're right... I totally mixed up when I cha...Gnz, you're right... I totally mixed up when I changed the names for the example. Is fixed now, Thanks!!Anonymoushttps://www.blogger.com/profile/17525961934302794120noreply@blogger.comtag:blogger.com,1999:blog-6893032696317132921.post-30681995630351702332008-01-09T06:10:00.000-05:002008-01-09T06:10:00.000-05:00Hola!I've only fiddled a bit with Scala, but... wh...Hola!<BR/><BR/>I've only fiddled a bit with Scala, but... where's does the "PruebaInterop" in<BR/>int[] res=PruebaInterop.sort(org);<BR/>come from? Shouldn't it be MyScalaObj according to the name of the Scala object?Gonzalohttps://www.blogger.com/profile/09268231345593223456noreply@blogger.com