NoSuchMethodError when attempting to implicitly convert a java to scala collection

与世无争的帅哥 提交于 2019-12-11 02:39:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!