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

Comparing jsr166/src/test/tck/ConcurrentHashMapTest.java (file contents):
Revision 1.60 by jsr166, Fri Oct 5 22:12:45 2018 UTC vs.
Revision 1.61 by jsr166, Fri Oct 5 22:23:34 2018 UTC

# Line 844 | Line 844 | public class ConcurrentHashMapTest exten
844              for (int i = 0; i < 100; i++) { // force a resize
845                  map.computeIfAbsent(i, key -> findValue(map, key));
846              }
847 <            fail("recursive computeIfAbsent");
848 <        } catch (IllegalStateException ex) {
849 <        }
847 >            fail("recursive computeIfAbsent should throw IllegalStateException");
848 >        } catch (IllegalStateException success) {}
849      }
850  
851      private Integer findValue(ConcurrentHashMap<Integer, Integer> map,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines