Description
In OrderedThreadPoolExecutor's constructor,
super.setCorePoolSize(corePoolSize);
is set before
super.setMaximumPoolSize(maximumPoolSize);
The setCorePoolSize has a check for maxPoolSize < corePoolSize and throws an exception as default max size is set to 1.
Re-ordering the two setters should solve the issue
Attachments
Issue Links
- duplicates
-
DIRMINA-1088 OrderedThreadPool implementation should be compatible with Java 10
- Resolved