Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-1090

OrderedThreadPoolExecutor constructor throws exception if corePoolsize is > 1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.19
    • Fix Version/s: 2.0.20
    • Component/s: Core
    • Labels:
      None

      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

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                adamcarlile Adam Carlile
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: