Change By: Grégory Joseph (17/Sep/13 6:05 PM)
Description: When a proxied bean sets a default for some field in its constructor, via a setter method (which is often done especially in subclasses that provide some default/specific behavior), the "manually" configured value gets overriden. The call flow goes like this:

{code}
class Obj = {
  Obj() {
   setFoo("default")
  }
  void setFoo(String) {}
}

obj = new Obj()// sets foo to "default"
obj.setFoo("my configured value")

d = i18nizer.decorate(obj)
// proxy creation involves invoking the constructor of d
assertEquals("my configured value", d.getFoo() // fails, d.getFoo() returns "default"
{code} 
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to