If mapAsScalaMap is an implicit function then why do we have to use it explicitly? And why is recursive conversion not happening ?
import scala.collection.JavaConversions._
val javaObj = yamlObj.asInstanceOf[java.util.LinkedHashMap[String, java.util.LinkedHashMap[String, String]]]
val map: collection.mutable.Map[String, collection.mutable.Map[String, String]] = javaObj << type mismatch
Isn't the above supposed to work because I imported all implicit Java conversions?
If I use mapAsScalaMap(javaObj) then it works but then it doesn't convert nested LinkedHashMap into a Scala map.