This question is motivated by noticing that the CLJ-994 patch fails when run with "./antsetup.sh ; ant" for JDK 1.6, but works fine with JDK 1.7.
http://dev.clojure.org/jira/browse/CLJ-994
If you add a test like the following to test/clojure/test_clojure/reducers.clj:
(deftest try-parallel-fold
(is (= (reduce + (vec (range 1000)))
(r/fold + (vec (range 1000))))))
and then try "./antsetup.sh ; ant" with JDK 1.6, you get a java.lang.NoClassDefFoundError for class jsr166y/ForkJoinTask
I can "mvn install" a 1.5.0-master-SNAPSHOT version of Clojure built by me into my own local Maven repo, and then create a Leiningen project that depends on it, and copy the jsr166y-1.7.0.jar file into its lib directory (Leiningen version 1.7.1), and the code above works without problem.
I know that antsetup.sh is intended to do something related to the jsr166y.jar file, but I don't know precisely what. Is it intended that perhaps after some future changes, we can have working unit tests when building with JDK 1.6 that rely on its use?
Andy