ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/CompletableFutureTest.java
(Generate patch)

Comparing jsr166/src/test/tck/CompletableFutureTest.java (file contents):
Revision 1.15 by jsr166, Wed Apr 3 16:59:57 2013 UTC vs.
Revision 1.16 by jsr166, Thu Apr 4 04:01:05 2013 UTC

# Line 2423 | Line 2423 | public class CompletableFutureTest exten
2423          Runnable[] throwingActions = {
2424              () -> { CompletableFuture.supplyAsync(null); },
2425              () -> { CompletableFuture.supplyAsync(null, exec); },
2426 <            () -> { CompletableFuture.supplyAsync(() -> one, null); },
2426 >            () -> { CompletableFuture.supplyAsync(supplyOne, null); },
2427  
2428              () -> { CompletableFuture.runAsync(null); },
2429              () -> { CompletableFuture.runAsync(null, exec); },
# Line 2512 | Line 2512 | public class CompletableFutureTest exten
2512              () -> { CompletableFuture.anyOf((CompletableFuture<?>[])null); },
2513              () -> { CompletableFuture.anyOf(f, null); },
2514              () -> { CompletableFuture.anyOf(null, f); },
2515
2516            // TODO: Crashes javac with lambda-8-2013-03-31...
2517            //() -> { CompletableFuture<?> x = f.thenAccept(null); },
2518            //() -> { CompletableFuture<Void> x = f.thenRun(null); },
2519            //() -> { CompletableFuture<Integer> x = f.thenApply(() -> { ; }); },
2515          };
2516  
2517          assertThrows(NullPointerException.class, throwingActions);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines