Edmondo Porcu
unread,Oct 4, 2011, 5:00:22 AM10/4/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala-user
Dear all,
I am encountering a tedious problem in Scala.
I am calling a third party library which receives as a parameter a java object.
This object however has to have certain characteristics in order for the method to succeed, as you do for example in Hibernate, where you can call session.persist() on every java.lang.Object but that will fail unless the object is annotated for example with @Entity.
My use case is the same, and I need to call a third party java library like that.
gigaSpace.write(curve, Lease.FOREVER,UpdateModifiers.UPDATE_OR_WRITE |UpdateModifiers.NO_RETURN_VALUE);
However, here i want to call gigaSpace.write(object, long, int) , while scala convert automatically that to a tuple, and calls
gigaspaces.write (Tuple3(object,long,int)) and this fails.
How can I avoid my parameters to be converted into a tuple ?
Thank you for your precious help
Best Regards
Edmondo