Thanks for looking into it...
I've been trying to create a minimum sample but have been unable.
However, the following does break (albeit in a bit different way)
trait GourmetWebServiceAsync {
def recipes(callback: AsyncCallback[Set[Recipe]]): Unit
}
@RemoteServiceRelativePath("gourmetWebService")
trait GourmetWebService extends RemoteService {
def recipes: Set[Recipe]
}
class GourmetWebServiceImpl extends RemoteServiceServlet with
GourmetWebService {
def recipes: Set[Recipe] = {
var retVal = Set[Recipe]()
DatabaseManager.recipes.foreach(copyMe => retVal += copyMe)
retVal
}
implicit def RecipeDB2Recipe(convertMe : RecipeDB):Recipe = {
null //TODO write this
}
}
object DatabaseManager {
def recipes: java.util.List[Recipe] = {
val query = session.createQuery("from Recipe recipe
order by recipe.title")
query.list.asInstanceOf[java.util.List[Recipe]]
}
}
I should say that I'm mostly new to scala so the above may not make
any sense, criticism is welcome!
The errors I get from this in the gwtc part of the compile and are:
[java] Added 14 units to persistent cache.
[java] Validating units:
[java] Errors in 'generated://
081DBC1073A596F3AA20B1A900F18CC2/com/dienique/gourmet_web/client/
GourmetWebService_TypeSerializer.java'
[java] Line 51: Referencing class
'scala.collection.immutable.HashSet_EmptyHashSet$_FieldSerializer':
unable to resolve class
[java] Line 51: Referencing class
'scala.collection.immutable.HashSet_EmptyHashSet$_FieldSerializer':
unable to resolve class
[java] Line 61: Referencing class
'scala.collection.immutable.ListSet_EmptyListSet$_FieldSerializer':
unable to resolve class
[java] Line 61: Referencing class
'scala.collection.immutable.ListSet_EmptyListSet$_FieldSerializer':
unable to resolve class
[java] Line 66: Referencing class
'scala.collection.immutable.Set_EmptySet$_FieldSerializer': unable to
resolve class
[java] Line 66: Referencing class
'scala.collection.immutable.Set_EmptySet$_FieldSerializer': unable to
resolve class