playframework - Play doesn't convert java-list to scala-list -
i have controller hands java-list of model-objects view way it's done in examples.
the compiler throws error can't convert java.util.list
scala.collection.immutable.list
. have no clue should do.
[error] /myapp/myappsubprojects/frontend/app/controllers/frontend/mycontroller.java:15: error: method render in class linklist cannot applied given types; [error] return ok(linklist.render("link test", link.findall())); [error] ^ [error] required: string,scala.collection.immutable.list<link> [error] found: string,java.util.list<link> [error] reason: actual argument java.util.list<link> cannot converted scala.collection.immutable.list<link> method invocation conversion [error] 1 error
note: i'm using subprojects (common, frontend, backend) , had hard time make run properly. it's related that.
i went fishing details , ended (luckily) answering question in comment
Comments
Post a Comment