Scala v Java issues