Project: SWT
Bug 251128 Display.readAndDispatch() and sleep() should not try/catch and call printStackTrace()
Reported: 2008-10-16 15:18:20 | Status: resolved fixed

When Scott committed the first code for accessitiblity, he said: "One (potentially controversial) change I made to Display was to put try/catch blocks in readAndDispatch() and sleep() so that an exception doesnt silently exit the program. The semantics of these methods didnt change, but dumping a backtrace is more useful than exiting." I agree that it is useful, definitely during development but as an underlying toolkit, we can't catch, print and swallow exceptions. This is a policy decision that is decided by the application. I think we need to take it out.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java