RFR 8011799: CompletableFuture/Basic.java fails intermittently
Alan.Bateman at oracle.com
Sun Apr 14 15:06:52 UTC 2013
On 14/04/2013 10:32, Chris Hegarty wrote:
> Silly mistake in the test. Incorrectly assumes that one of the given
> CompletableFutures must be completed before applyToEitherXXX /
> acceptEitherXXX / runAfterEitherXXX / anyOf returns. The correct
> assertion is that one of the given CompletableFutures must be
> completed before the return CompletableFuture completes.
> With the given structure of the test this can be done by checking that
> one of the given CompletableFutures is complete after joining the
> returned CompletableFuture.
Looks good to me too.
More information about the core-libs-dev