Scala错误:类文件坏了,坏常量池索引

Rob*_*b N 7 scala scala-2.10

我试图从Scala调用Selenium Java库.我正在使用Scala IDE(Eclipse)和Scala 2.10.2.是什么导致了这个编译错误?

error while loading Function, class file '/Dev/selenium-2.35.0/libs/guava-
14.0.jar(com/google/common/base/Function.class)' is broken 
(class java.lang.RuntimeException/bad constant pool index: 0 at pos: 479)   
Run Code Online (Sandbox Code Playgroud)

有时我通过包含更多罐子来修复损坏的类文件错误 - 罐子javac不需要看,但显然scalac确实如此.但是这种情况我不知道我能添加的其他罐子.

Rob*_*b N 4

找到了答案。这是由此引起的:https://code.google.com/p/guava-libraries/issues/detail?id=1095。当我添加 jsr305 jar 时,错误消失了。