[ 
https://issues.apache.org/jira/browse/GROOVY-6264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles closed GROOVY-6264.
-------------------------------
    Resolution: Fixed

I get this output:
missing static getter attr 
missing object getter attr1 
missing object setter attr1 bar
missing static setter attr bar

> static.propertyMissing with name and value doesn't called
> ---------------------------------------------------------
>
>                 Key: GROOVY-6264
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6264
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-runtime
>    Affects Versions: 2.1.3, 2.4.0-rc-1
>            Reporter: Pavel Alexeev
>            Priority: Major
>
> {code}
> class Foo{} 
> Foo.metaClass.static.propertyMissing << {name -> println "missing static 
> getter $name "} 
> Foo.metaClass.propertyMissing << {name,value -> println "missing object 
> setter $name $value"} 
> Foo.metaClass.propertyMissing << {name -> println "missing object getter 
> $name "} 
> Foo.metaClass.static.propertyMissing << {name,value -> println "missing 
> static setter $name $value"} 
> Foo.attr 
> new Foo().attr1 
> new Foo().attr1 = "bar" 
> Foo.attr = "bar" // exception here 
> {code}
> According to 
> http://groovy.codehaus.org/Using+methodMissing+and+propertyMissing it should.
> Please note, I'm googling deeper and found only unanswered question - 
> http://groovy.329449.n5.nabble.com/static-propertyMissing-with-name-and-value-doesn-t-work-Should-it-td5711002.html
>  which is almost copied here, but no any workaround.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to