Dynamic properties in Groovy/Grails

Hi,

the example described here: http://www.jetbrains.net/confluence/display/GRVY/Dynamic+Methods+and+Properties
suggests, that the IDE understands the assignment of dynamic props to the metaclass. I tried this out, but without success. Am I doing something wrong or do I misunderstand the description/example?
To add confusion, in the context of a metaclass assignment, the IDE suggests to add this property to the metaclass itself, which is not what I wanted to have.

I tried this with version 8.1.3 and 9.0beta (Maia IU-90.137).

Regards,
klaus.

0

the example described here: ../confluence/display/GRVY/DynamicMethodsand+Properties
suggests, that the IDE understands the assignment of dynamic props to the metaclass. I tried this out, but without success. Am I doing something wrong or do I misunderstand the description/example?

We don't do any advanced code analysis yet to detect MOP changes, you
could manually add concrete dynamic properties/methods to concrete
types, whose metaclasses you change in your code.

To add confusion, in the context of a metaclass assignment, the IDE suggests to add this property to the metaclass itself, which is not what I wanted to have.

Yes, we could suppress that. Will you file a request?

0

请先登录再写评论。