2
使用Scala的Joda Time发生类中断错误
我正在将Joda Time存储库添加到SBT中, libraryDependencies ++= Seq( "joda-time" % "joda-time" % "2.1" ) 然后我像这样愉快地使用它: val ymd = org.joda.time.format.DateTimeFormat.forPattern("yyyyMMdd") ymd.parseDateTime("20121212") 但是,当我在SBT中编译项目时,我会感到讨厌: [warn] Class org.joda.convert.FromString not found - continuing with a stub. [warn] Caught: java.lang.NullPointerException while parsing annotations in /home/jack/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jar(org/joda/time/DateTime.class) [error] error while loading DateTime, class file '/home/jack/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jar(org/joda/time/DateTime.class)' is broken [error] (class java.lang.RuntimeException/bad constant …