changeset 206:8af457433465

Fixing ThreadPoolExecutorSizesTest for JDK 9.
author shade
date Wed, 13 Aug 2014 22:41:05 +0400
parents 229b1dadb202
children b2d694f290cd
files tests-custom/src/main/java/org/openjdk/jcstress/tests/executors/ThreadPoolExecutorSizesTest.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests-custom/src/main/java/org/openjdk/jcstress/tests/executors/ThreadPoolExecutorSizesTest.java	Wed Aug 13 03:13:00 2014 +0400
+++ b/tests-custom/src/main/java/org/openjdk/jcstress/tests/executors/ThreadPoolExecutorSizesTest.java	Wed Aug 13 22:41:05 2014 +0400
@@ -49,7 +49,9 @@
 
     @Actor
     public void actor1() {
-        pool.setCorePoolSize(3);
+        try {
+            pool.setCorePoolSize(3);
+        } catch (IllegalArgumentException ignore) {}
     }
 
     @Actor