I have a problem using the joda time library together with JRuby
(1.6.6 and 1.6.5).
It looks like we are using the same version of the library as JRuby
uses (version 2.0 - https://github.com/jruby/jruby/tree/master/build_lib)
1.6.5 and 1.6.6 ship with joda time 1.6.2 (although I thought jruby used
to
jarjar it to a different namespace?)
DateTime didn’t have the constructor that you’re trying to call in your
test code added until version 2.0. Therefore, the 1.6.2 version of the
code
is earlier in the classpath and gets loaded by the classloader.
Your code works with jruby-head though, which is bundling joda-time 2.0.