开发者

NoSuchMethodError when attempting to implicitly convert a java to scala collection

开发者 https://www.devze.com 2023-01-30 04:02 出处:网络
I started to receive this kind of error in my code: Message: java.lang.NoSuchMethodError:scala.collection.JavaConversions

I started to receive this kind of error in my code:

Message:
java.lang.NoSuchMethodError:scala.collection.JavaConversions
$.asScalaSet(Ljava/util开发者_StackOverflow中文版/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.


You are using a library which has been compiled with 2.8.1 from the 2.8.0 runtime

0

精彩评论

暂无评论...
验证码 换一张
取 消