使用Scala反射时出现奇怪的Scala错误

时间:2017-04-27 13:22:20

标签: scala scala-reflect

我将scala反映库版本2.11.8的依赖项添加到我现有的项目中,以便我可以使用TypeTag,但奇怪的是我在运行时遇到了一些错误。这是我的错误:

Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10a3ab4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10b4ce4e0). One of the two will be used. Which one is undefined.
Exception in thread "main" java.lang.AbstractMethodError: Method com/my/csvparser/CSVParser$.scala$App$_setter_$executionStart_$eq(J)V is abstract
    at com.my.csvparser.CSVParser$.scala$App$_setter_$executionStart_$eq(CSVParser.scala)
    at scala.App$class.$init$(App.scala:44)
    at com.my.csvparser.CSVParser$.<init>(CSVParser.scala:13)
    at com.my.csvparser.CSVParser$.<clinit>(CSVParser.scala)
    at com.my.csvparser.CSVParser.main(CSVParser.scala)

有没有人遇到过类似的问题?我的Scala版本是2.11.8

0 个答案:

没有答案