You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Adam Carlile (JIRA)" <ji...@apache.org> on 2018/07/17 09:00:05 UTC

[jira] [Commented] (DIRMINA-1090) OrderedThreadPoolExecutor constructor throws exception if corePoolsize is > 1

    [ https://issues.apache.org/jira/browse/DIRMINA-1090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16546214#comment-16546214 ] 

Adam Carlile commented on DIRMINA-1090:
---------------------------------------

Ah ok sorry I didn't see that. Thanks!

> 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
>            Priority: Minor
>             Fix For: 2.0.20
>
>
> 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)