Permalink
Browse files

samples: prj-custom-layout replace scala.Int by String (to avoid java…

…c compilation issue)
  • Loading branch information...
1 parent c8779fe commit 8d6bc580cad59604d6216a6dd3d1a86488c01d9b @davidB davidB committed Jul 26, 2011
@@ -1,5 +1,5 @@
package samples
class ScalaObj {
- def foo() = 280
+ def foo() = "foo-280"
}
@@ -2,11 +2,11 @@
public class UseScalaObj {
- public int use() throws Exception {
+ public String use() throws Exception {
return use(new ScalaObj());
}
- public int use(ScalaObj o) throws Exception {
- return -1 * o.foo();
+ public String use(ScalaObj o) throws Exception {
+ return "java + " + o.foo();
}
}

0 comments on commit 8d6bc58

Please sign in to comment.