问题
I started to receive this kind of error in my code:
Message:
java.lang.NoSuchMethodError:scala.collection.JavaConversions
$.asScalaSet(Ljava/util/Set;)Lscala/collection/mutable/Set
and then I see a long screen of stacktrace of uninteresting nature, which is triggered on this piece of code:
edited.authors.toSeq
where authors
is a java.lang.Set
. Does anybody know why is this happening? It's a runtime failure and not a compile one.
回答1:
You are using a library which has been compiled with 2.8.1 from the 2.8.0 runtime
来源:https://stackoverflow.com/questions/4393946/nosuchmethoderror-when-attempting-to-implicitly-convert-a-java-to-scala-collecti