cushon / issues-import

0 stars 0 forks source link

Thread created but never started #199

Open cushon opened 9 years ago

cushon commented 9 years ago

Original issue created by aeagle22206 on 2013-10-07 at 02:59 PM


Describe the bug pattern this checker should detect and why it is incorrect.

new Thread(new Runnable(){ @Override public void run() { // lots of code }}); // reference to the new thread was lost

Could probably share most of the code with DeadException - an object is created and then the reference is lost.