Should it be possible to test parallel reducer implementations with JDK 1.6?

51 views
Skip to first unread message

Andy Fingerhut

unread,
May 20, 2012, 11:16:44 PM5/20/12
to cloju...@googlegroups.com
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

Stuart Halloway

unread,
Jun 8, 2012, 3:56:29 PM6/8/12
to cloju...@googlegroups.com
Ant build fixed on master, thanks. 

Stuart Halloway
Clojure/core
http://clojure.com

Reply all
Reply to author
Forward
0 new messages