commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict (JIRA)" <>
Subject [jira] Commented: (BEANUTILS-311) DynaBean variables are evaluated before member variables.
Date Wed, 19 Mar 2008 14:52:29 GMT


Paul Benedict commented on BEANUTILS-311:

I wouldn't leave this behavior, undefined. This is my suggestion (method names are just examples):

Add a new method called populateRealProperties which contains the logic to actually populate
the real properties. Delegates to an overrideable method to perform custom logic if necessary.

public void populateRealProperties(....) {
    // maybe real logic will go here one day
   postProcessRealProperties();   // extra hook

> DynaBean variables are evaluated before member variables.
> ---------------------------------------------------------
>                 Key: BEANUTILS-311
>                 URL:
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.0-BETA
>            Reporter: Ivan Popov
> Hi,
> I have a class that is a DynaBean (extends LazyDynaBean) and that has some member variables,
in addition to those of the DynaBean.
> It seems as if dynaBean variables are evaluated first, and as the property to evaluate
is a member variable and not a dynaBean one,
> it returns a NestedNullException.
> Regards.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message