JDK-8161561 : In the documentation, it is missing, that SwingWorker can have maximum of 10 instances
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u92,9
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_7
  • CPU: x86
  • Submitted: 2016-07-09
  • Updated: 2016-07-18
  • Resolved: 2016-07-18
Related Reports
Relates :  
Description
A DESCRIPTION OF THE PROBLEM :
I wanted to create 27 instances of the SwingWorker class , but only 10 can be created (I have got only 10). I the documentation, that fact is missing.


URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/7/docs/api/javax/swing/SwingWorker.html


Comments
I could create 100 instances of SwingWorker class and scheduled all of them for execution. MAX_WORKER_THREADS just a thread pool size per app context. And the class documentation clarifies that a thread chosen for the SwingWorker execution is not specified: Several background threads can be used to execute such tasks. However, the exact strategy of choosing a thread for any particular {@code SwingWorker} is unspecified and should not be relied on.
18-07-2016