scala/scala — pull request #1745 by phaller (2012-12-10 15:14:49+00:00)
Title: SIP-14 backport to 2.9.x

Other than adding the new APIs, a few changes are required:

1. Build. The Java sources in "scala/concurrent/impl" need forkjoin.jar on the classpath. Thus, I replaced the "classpath" attribute in the respective `javac` ant tasks (locker.lib and quick.lib) with a "classpathref" attribute pointing to a classpath which includes also the forkjoin.jar. In the locker.lib target, exclude the duration package and everything that depends on it.

2. Dependent method types and SI-5958. The `duration` package relies on dependent method types, and requires a backport of SI-5958. This backport is available in PR #1726.

Review by @jsuereth (build) @adriaanm (dependency on #1726)