> // Init the unique token
> def beforeInsert = {
> println "invoking beforeInsert - conf token is [$confirmationToken]"
> makeToken()
> println "after beforeInsert - conf token is [$confirmationToken]"
> }
What happens if you replace the "makeToken()" line with
"confirmationToken = 'something'"?
> Then the output from the test is:
>
> invoking beforeInsert - conf token is [?]
> after beforeInsert - conf token is [?]
But what's in the database?
> So tell me... how is this possible? I think I need to raise a jira or two
> don't I?
>
> My gut tells me I'm missing a stupid typo. I hope so.
It doesn't look like it, but I wonder what's happening when the
closure offloads to the method. If the closure's delegate is
overridden and the resolve strategy changed, strange things might
happen. But that shouldn't be happening.
Cheers,
Peter
--
Software Engineer
G2One, Inc.
http://www.g2one.com/---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email