Adam Carlile created DIRMINA-1090:
-------------------------------------
Summary: OrderedThreadPoolExecutor constructor throws exception if
corePoolsize is > 1
Key: DIRMINA-1090
URL: https://issues.apache.org/jira/browse/DIRMINA-1090
Project: MINA
Issue Type: Bug
Components: Core
Affects Versions: 2.0.19
Reporter: Adam Carlile
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
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)