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

Comparing jsr166/src/test/tck/ForkJoinTaskTest.java (file contents):
Revision 1.21 by jsr166, Sun Oct 24 17:52:23 2010 UTC vs.
Revision 1.22 by dl, Thu Nov 18 11:44:29 2010 UTC

# Line 438 | Line 438 | public class ForkJoinTaskTest extends JS
438                      assertTrue(cause instanceof FJException);
439                      assertTrue(f.isDone());
440                      assertTrue(f.isCompletedAbnormally());
441 <                    assertSame(cause, f.getException());
441 >                    assertSame(cause.getClass(), f.getException().getClass());
442                  }
443              }};
444          testInvokeOnPool(mainPool(), a);
# Line 460 | Line 460 | public class ForkJoinTaskTest extends JS
460                      assertTrue(cause instanceof FJException);
461                      assertTrue(f.isDone());
462                      assertTrue(f.isCompletedAbnormally());
463 <                    assertSame(cause, f.getException());
463 >                    assertSame(cause.getClass(), f.getException().getClass());
464                  }
465              }};
466          testInvokeOnPool(mainPool(), a);
# Line 1166 | Line 1166 | public class ForkJoinTaskTest extends JS
1166                      assertTrue(cause instanceof FJException);
1167                      assertTrue(f.isDone());
1168                      assertTrue(f.isCompletedAbnormally());
1169 <                    assertSame(cause, f.getException());
1169 >                    assertSame(cause.getClass(), f.getException().getClass());
1170                  }
1171              }};
1172          testInvokeOnPool(singletonPool(), a);
# Line 1188 | Line 1188 | public class ForkJoinTaskTest extends JS
1188                      assertTrue(cause instanceof FJException);
1189                      assertTrue(f.isDone());
1190                      assertTrue(f.isCompletedAbnormally());
1191 <                    assertSame(cause, f.getException());
1191 >                    assertSame(cause.getClass(), f.getException().getClass());
1192                  }
1193              }};
1194          testInvokeOnPool(singletonPool(), a);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines