Details
Description
If I try to run lein repl outside of a project folder, I get Clojure 1.4.0.
I then run
(println (javax.xml.bind.DatatypeConverter/parseDateTime "2008-07-21T19:17:29"))
which produces
IndexOutOfBoundsException start 26, end 2, s.length() 28 java.lang.AbstractStringBuilder.append (AbstractStringBuilder.java:476)
#inst "2008-07-21T19:17:29.000+01:
Note the absence of a closing '"'.
My apologies in advance if this is impossible to reproduce.
I can reproduce this with Clojure 1.4.0 and 1.5.0-RC2 if I do it within "lein2 repl" (I was using Leiningen version 2.0.0-preview10 to reproduce the problem).
If I use "java -cp clojure.jar clojure.main" to start a REPL session, with either Clojure 1.4.0 or 1.5.0-RC2 for clojure.jar, I don't see any problem. I was testing on Mac OS X 10.6.8 with Oracle/Apple JDK 1.6.0_37.
I also don't see this problem if I use Leiningen version 1.7.1, tested with both Clojure 1.4.0 and 1.5.0-RC2.
This appears to be some kind of bad interaction between Leiningen 2.0.0-preview10 and Clojure.