Some Smalltalk platforms seem to continue evaluating the receiving block of
#on:do: after
processing the exception handler of a notification. Adding a return to the end
of the exception
handler solves this issue:
validate: anObject
[ validationBlock value: anObject.
message contents: nil.
^ true ]
on: self exceptionClass
do: [ :exception |
message contents: exception messageText.
^ false " <-- add this" ].
^ false
Original issue reported on code.google.com by renggli on 28 Nov 2008 at 2:23
Original issue reported on code.google.com by
rengglion 28 Nov 2008 at 2:23