commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36940] - [BeanUtils] Method get in LazyDynaBean don't returns null if the value of the propertie is null
Date Wed, 05 Oct 2005 20:42:28 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36940>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36940


niallp@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
            Summary|Method get in LazyDynaBean  |[BeanUtils] Method get in
                   |don't returns null if the   |LazyDynaBean don't returns
                   |value of the propertie is   |null if the value of the
                   |null                        |propertie is null




------- Additional Comments From niallp@apache.org  2005-10-05 22:42 -------
Thanks Roi for pointing this out - I have just fixed this.

If you need a work round in the mean time then create your own lazy 
implementation along the following lines:

public class MyLazyBean extends LazyDynaBean {

    public MyLazyBean() {
        super();
    }
    protected Object createProperty(String name, Class type) {

        if (type == Object.class) {
            return null;
        } else {
            return super.createProperty(name, type);
        }

    }
}

http://svn.apache.org/viewcvs?rev=295107&view=rev

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message