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

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.128 by jsr166, Fri Feb 27 22:06:24 2015 UTC vs.
Revision 1.129 by jsr166, Fri Feb 27 22:10:29 2015 UTC

# Line 564 | Line 564 | public class JSR166TestCase extends Test
564      public void threadAssertEquals(Object x, Object y) {
565          try {
566              assertEquals(x, y);
567 <        } catch (AssertionFailedError t) {
568 <            threadRecordFailure(t);
569 <            throw t;
570 <        } catch (Throwable t) {
571 <            threadUnexpectedException(t);
567 >        } catch (AssertionFailedError fail) {
568 >            threadRecordFailure(fail);
569 >            throw fail;
570 >        } catch (Throwable fail) {
571 >            threadUnexpectedException(fail);
572          }
573      }
574  
# Line 580 | Line 580 | public class JSR166TestCase extends Test
580      public void threadAssertSame(Object x, Object y) {
581          try {
582              assertSame(x, y);
583 <        } catch (AssertionFailedError t) {
584 <            threadRecordFailure(t);
585 <            throw t;
583 >        } catch (AssertionFailedError fail) {
584 >            threadRecordFailure(fail);
585 >            throw fail;
586          }
587      }
588  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines