Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: 1.2.1
-
Component/s: None
-
Labels:None
-
Environment:Windows XP
Eclipse
-
Testcase included:yes
Description
Attached is an example of when a script, running a bean builder, does not wire the spring configuration correctly.
The concrete bean has references to a parent bean that has some properties set to an external bean reference. This reference in the child is NULL.
It may, in some way, be related to http://jira.codehaus.org/browse/GRAILS-490 where I first reported this.
This breaks DRY, as I keep having to include the external bean reference in all child beans.
interestingly if I move the declaration of the reference to myABean into a groovy class, (class GroovyC in my example) the reference is carried over to all children.