gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.51k stars 373 forks source link

DOM.previewEvent does not call UncaughtExceptionHandler.onUncaughtException(e) #4114

Closed dankurka closed 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 4113

Found in GWT Release (e.g. 1.5.3, 1.6 RC): 1.7.0

Encountered on OS / Browser (e.g. WinXP, IE6-7, FF3): Windows XP / IE6
(hosted mode)

Detailed description (please be as specific as possible):
I've noticed that the method DOM.previewEvent does not call
UncaughtExceptionHandler.onUncaughtException(e) if an exception occurs.  As
a result, exceptions don't get reported to the console.  Specifically, I
don't see exceptions that occur in GXT's DND code.  As a result, these
exceptions become very difficult to debug or even notice.

Shortest code snippet which demonstrates issue (please indicate where
actual result differs from expected result):
The only way that I know of reproducing this requires GXT, which certainly
isn't a snippet.  I'd override DragSource's onDragStart() and throw new
NullPointerException(); on the first line.  You'd see that no exception is
reported on the console.

Workaround if you have one:
I can think of no workaround other than to recompile GWT with a try/catch
wrapped around this method.

Links to relevant GWT Developer Forum posts:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/3eaa5b39991d4e6f

Reported by tietyt on 2009-10-07 22:04:19

dankurka commented 9 years ago

Reported by jlabanca@google.com on 2009-12-15 22:06:50

dankurka commented 9 years ago
Was fixed in back 2009:
http://gwt-code-reviews.appspot.com/77813

Reported by goktug@google.com on 2013-01-31 18:24:31