Why is ThreadPoolExecutor.run () called?

Possible duplicate:
The Eclipse debugger always blocks ThreadPoolExecutor without any obvious exception, why?

Eclipse constantly pauses execution in the run () method below in the line in the final block: workDone (this);

I have not set any breakpoints here, and my application is working as expected.

Any pointers to why this is happening?

java.util.concurrent.ThreadPoolExecutor public void run() { try { Runnable task = firstTask; firstTask = null; while (task != null || (task = getTask()) != null) { runTask(task); task = null; } } finally { workerDone(this); } } } 
+4
source share
1 answer

In all likelihood, your call to the workerDone method throws an exception that is unhandled and bubbles up outside of the run method. Thus, the thread is interrupted, but Eclipse allows you to check this situation just before the exception escapes the method. This is an automatic exception checkpoint.

+3
source

All Articles