Skip to content

WAValidationDecoration>>#validate does not work on all platforms #247

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions