Thursday, June 2, 2011

Re: redundant remove call with HandlerManager

An AssertionError is a Throwable but not an Exception: http://download.oracle.com/javase/6/docs/api/java/lang/AssertionError.html

Anyway, you shouldn't catch the exception, you should rather make sure it doesn't happen. For instance, whenever you removeHandler(), you could null the variable, so the next time you won't try to call removeHandler() a second time on the same HandlerRegistration.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/WDdGNktKeXlOZ1FK.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment