[CLJ-1221] Should repackage jsr166 and include known version with Clojure Created: 20/Jun/13 Updated: 03/Sep/13
|Affects Version/s:||Release 1.5|
|Reporter:||Alex Miller||Assignee:||Alex Miller|
Clojure 1.5 reducers work with either the JDK version of forkjoin (JDK 1.7+) or with an external jsr166 jar. This causes complexity for users and complexity in the build to deal with the two options.
jsr166 code is public domain and it is common for other projects to repackage the handful of files and ship it with the project (similar to what we do with asm). This would allow us just use a known existing version of jsr166 across all jdks and we could get rid of the custom build wrangling we introduced in Clojure 1.5.
jsr166y is compatible with JDK 1.6+ and is the version that (for example) Scala currently repackages. That's the best choice for JDK 1.6 and 1.7. In JDK 1.8, the best choice will (temporarily) be the built-in version in java.util.concurrent which tracks jsr166e but then as soon as there are updates will become jsr166e. Many fork/join fixes are ported to both y and e right now.
Some choices here for JDK 1.8:
Not sure yet which of these is best choice right now.