在尝试找出一些joda-time DateTime(时间戳格式化)问题时,我打开了一个REPL
scala -cp joda-time-2.3.jar
Run Code Online (Sandbox Code Playgroud)
并忘记添加joda-convertjar,最终得到了一个
java.lang.AssertionError: assertion failed: org.joda.convert.ToString
Run Code Online (Sandbox Code Playgroud)
(整个堆栈跟踪)
我能够将其简化为:
> scala -cp joda-time-2.3.jar
Welcome to Scala version 2.11.0 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_05).
Type in expressions to have them evaluated.
Type :help for more information.
scala> val dt = new org.joda.time.DateTime
warning: Class org.joda.convert.FromString not found - continuing with a stub.
warning: Class org.joda.convert.ToString not found - continuing with a stub.
warning: Class org.joda.convert.FromString not found - continuing with …Run Code Online (Sandbox Code Playgroud)