NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #870 (closed defect: wontfix)

Opened 2011-11-10T13:04:27-06:00

Last modified 2014-08-20T12:06:13-05:00

Improve the thread whitelist in LegacyPlugin

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej-2.0.0
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1011


Some threads in IJ1 do not terminate until windows close (such as StackWindow and it's zSelector thread). There may be other cases where threads do not terminate. This will require updates to LegacyPlugin's whitelist() method.

In StackWindow's zSelector case the thread is named so we can easily identify it. But using a name could cause problems if any other plugin names a thread "zSelector". So we should come up with a way to identify threads by class names.

Ideally a Thread implementation has a class name that is enhanced if it has an anonymous override of run(). Or if someone instead gives the Thread a Runnable then perhaps the Runnable too will have an enhanced class name. We can use these enhanced names to safely identify which threads to whitelist.

Change History

comment:1 Changed 2011-11-10T13:07:50-06:00 by bdezonia

Have not found a way to find enhanced names. Running this:


on the zSelector thread yields this:

---class java.lang.Class

No enhanced names shown.

comment:2 Changed 2012-02-26T21:56:21-06:00 by curtis

  • Blocking 1011 added

comment:3 Changed 2012-05-14T11:00:53-05:00 by bdezonia

  • Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta4

comment:4 Changed 2012-09-10T09:13:18-05:00 by bdezonia

  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0

comment:5 Changed 2014-08-20T12:06:13-05:00 by curtis

  • Status changed from new to closed
  • Resolution set to wontfix

We are no longer supporting use of ImageJ 1.x commands from modern ImageJ2 UIs. So this ticket is now moot.