Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.0-JSR-4
-
None
Description
> With the latest build I found the behaviour
> below but I'm not sure that this is the expected
> behaviour.
> Seems like either the getter override for properties
> has trouble or the name resolution in testZero().
> ----
> class ExplicitThisTest extends GroovyTestCase {
> @Property zero = 0
>
> def getZero()
>
> void testZero()
> }
I would not say it is a new scoping bug, it is a old one with new face.
This one is on my todo list. But first we should maybe make clear what
this should mean. I would say:
assert 1==zero
assert 1==this.zero
assert 0==this.@zero
bye blackdrag
agreed by mittie, tug, MrG
Attachments
Issue Links
- relates to
-
GROOVY-491 Problem with dynamic name resolution
- Closed