test/java/util/concurrent/locks/ReentrantReadWriteLock/MapLoops.java
Print this page
*** 32,42 ****
*/
/*
* @test
* @bug 4486658
! * @compile MapLoops.java
* @run main/timeout=4700 MapLoops
* @summary Exercise multithreaded maps, by default ConcurrentHashMap.
* Multithreaded hash table test. Each thread does a random walk
* though elements of "key" array. On each iteration, it checks if
* table includes key. If absent, with probability pinsert it
--- 32,42 ----
*/
/*
* @test
* @bug 4486658
! * @compile -source 1.5 MapLoops.java
* @run main/timeout=4700 MapLoops
* @summary Exercise multithreaded maps, by default ConcurrentHashMap.
* Multithreaded hash table test. Each thread does a random walk
* though elements of "key" array. On each iteration, it checks if
* table includes key. If absent, with probability pinsert it
*** 63,73 ****
Class mapClass = null;
if (args.length > 0) {
try {
mapClass = Class.forName(args[0]);
! } catch(ClassNotFoundException e) {
throw new RuntimeException("Class " + args[0] + " not found.");
}
}
else
mapClass = RWMap.class;
--- 63,73 ----
Class mapClass = null;
if (args.length > 0) {
try {
mapClass = Class.forName(args[0]);
! } catch (ClassNotFoundException e) {
throw new RuntimeException("Class " + args[0] + " not found.");
}
}
else
mapClass = RWMap.class;