sun.awt.AppContext.dispose uses Thread.stop to "stop" all threads in a thread group that don't response to Thread.interrupt within 1s. This code will break once Thread.stop has been degraded to throw UOE unconditionally.
java/awt/AppContext/ApplicationThreadsStop/ApplicationThreadsStop.java is one test that seems to exercise this code.
java/awt/AppContext/ApplicationThreadsStop/ApplicationThreadsStop.java is one test that seems to exercise this code.