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

OrderedThreadPoolExecutor constructor throws exception if corePoolsize is > 1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.0.19
    • 2.0.20
    • Core
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: