You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Niall Pemberton <ni...@blueyonder.co.uk> on 2004/07/02 17:27:44 UTC

[beanutils] LazyDynaClass and LazyDynaBean Bug [29879]

I created a bugzilla enhacement request (with code)  Bug [29879] to add
LazyDynaBean and LazyDynaClass to beanutils - I don't know if the problem is
my end but I didn't see the usual emails arrive on this list so I thought I
would post this as well.

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

I developed "Lazy" implementations of DynaBean and DynaClass and they have
been available for people to download from my web site for a while - would
there be any interest in having them in beanutils?

LazyDynaClass is an implementation of the MutableDynaClass interface that
allows the properties of a DynaClass to be changed.

LazyDynaBean must be used in conjunction with a MutableDynaClass and
automatically adds properties when its set() methods are called if the
property doesn't exist. The versions available on my web site only dealt
with "simple" properties, but I now have a version that caters for indexed
and mapped properties as well.

This version automatically instantiates a Map when a mapped property is set
that doesn't exist.

It also instantiates either a List or Array when an indexed property is set
that doesn't exist and automatically "grows" the List or Array so that it is
big enough to cater for the index being set.

Quite a few people seem to be using them now and I've had good feedback.

I'm not sure of the Commons "etiquette" here - I was recently voted a
Commons committer for the Validation project - but I guess I don't have
karma for beanutils and even if I have, houldn't just plough in adding stuff
without the existing Beanutils commiters say so?

Niall



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


Re: [beanutils] LazyDynaClass and LazyDynaBean Bug [29879]

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
cool.

i see you've added reviewed a good number of bugs reports (thanks). 
i'll try to find time to go through as many as possible of them 
tomorrow.

the general plan for beanutils (and some background) is on the wiki. we 
need to cut a 1.7.0 service release that will give compatibility with 
both collections 2.x and 3.x. this will enable a similar release to be 
cut for digester and then (hopefully) one for struts as well.

since beanutils has a load of outstanding bugs and enhancements against 
it, the plan is to try to aim for a relatively quick 1.7.1 bug 
fix/enhancement release.

the major item of work remaining before 1.7.0 is released is a review 
of the interfaces for the new beanified classes. i'll probably post 
some more about this is a better named thread. i'd be grateful if you'd 
take a look and comment.

- robert

On 8 Jul 2004, at 22:46, Niall Pemberton wrote:

> I did apply a fix for bug 28684 as it seemed pretty straight forward - 
> the
> cvs email didn't come through to the list because it was too big - I 
> added
> quite a few Unit tests for locale converters.
>
> Niall
>
> ----- Original Message -----
> From: "robert burrell donkin" <ro...@blueyonder.co.uk>
> To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
> Sent: Thursday, July 08, 2004 10:10 PM
> Subject: Re: [beanutils] LazyDynaClass and LazyDynaBean Bug [29879]
>
>
>> On 6 Jul 2004, at 22:55, Niall Pemberton wrote:
>>
>>> Robert,
>>>
>>> What do we need to do to push beanutils forward?
>>
>> that's a good question that deserves a longer answer than i have the
>> energy for right now :)
>>
>>> Is it a case of reviewing
>>> the open bugs which are not Serverity "enhancement" and deciding what
>>> to do
>>> about them?
>>
>> that would be very useful.
>>
>>> I'll review (at least some of) these tonight. Any I think I can help
>>> with,
>>> I'll try to make some time this week to  fix them, although can't
>>> promise
>>> anything. As you pointed out beanutils is widely used, if I do fix 
>>> any
>>> its
>>> probably best if I attach patches to the bugzilla for comment first
>>> before
>>> applying.
>>
>> that sounds like a good plan.
>>
>> i hope to be able to find some beanutils time next week. i'll post
>> something more in the next day or two.
>>
>> - robert
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>


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


Re: [beanutils] LazyDynaClass and LazyDynaBean Bug [29879]

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
I did apply a fix for bug 28684 as it seemed pretty straight forward - the
cvs email didn't come through to the list because it was too big - I added
quite a few Unit tests for locale converters.

Niall

----- Original Message ----- 
From: "robert burrell donkin" <ro...@blueyonder.co.uk>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Sent: Thursday, July 08, 2004 10:10 PM
Subject: Re: [beanutils] LazyDynaClass and LazyDynaBean Bug [29879]


> On 6 Jul 2004, at 22:55, Niall Pemberton wrote:
>
> > Robert,
> >
> > What do we need to do to push beanutils forward?
>
> that's a good question that deserves a longer answer than i have the
> energy for right now :)
>
> > Is it a case of reviewing
> > the open bugs which are not Serverity "enhancement" and deciding what
> > to do
> > about them?
>
> that would be very useful.
>
> > I'll review (at least some of) these tonight. Any I think I can help
> > with,
> > I'll try to make some time this week to  fix them, although can't
> > promise
> > anything. As you pointed out beanutils is widely used, if I do fix any
> > its
> > probably best if I attach patches to the bugzilla for comment first
> > before
> > applying.
>
> that sounds like a good plan.
>
> i hope to be able to find some beanutils time next week. i'll post
> something more in the next day or two.
>
> - robert
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
>



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


Re: [beanutils] LazyDynaClass and LazyDynaBean Bug [29879]

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
On 6 Jul 2004, at 22:55, Niall Pemberton wrote:

> Robert,
>
> What do we need to do to push beanutils forward?

that's a good question that deserves a longer answer than i have the 
energy for right now :)

> Is it a case of reviewing
> the open bugs which are not Serverity "enhancement" and deciding what 
> to do
> about them?

that would be very useful.

> I'll review (at least some of) these tonight. Any I think I can help 
> with,
> I'll try to make some time this week to  fix them, although can't 
> promise
> anything. As you pointed out beanutils is widely used, if I do fix any 
> its
> probably best if I attach patches to the bugzilla for comment first 
> before
> applying.

that sounds like a good plan.

i hope to be able to find some beanutils time next week. i'll post 
something more in the next day or two.

- robert


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


Re: [beanutils] LazyDynaClass and LazyDynaBean Bug [29879]

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
Robert,

What do we need to do to push beanutils forward? Is it a case of reviewing
the open bugs which are not Serverity "enhancement" and deciding what to do
about them?

I'll review (at least some of) these tonight. Any I think I can help with,
I'll try to make some time this week to  fix them, although can't promise
anything. As you pointed out beanutils is widely used, if I do fix any its
probably best if I attach patches to the bugzilla for comment first before
applying.

Niall

----- Original Message ----- 
From: "robert burrell donkin" <ro...@blueyonder.co.uk>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Sent: Tuesday, July 06, 2004 9:27 PM
Subject: Re: [beanutils] LazyDynaClass and LazyDynaBean Bug [29879]


> On 5 Jul 2004, at 01:37, Niall Pemberton wrote:
>
> <snip>
>
> > The "Lazy" bean patches are two new dyna bean classes and involve no
> > changes
> > to existing code - plus there are two new junit test cases to test
> > these
> > classes.
>
> true
>
> > If I add these new classes in and someone comes back later and
> > objects, they
> > can always be removed if the objections can't be resolved.
>
> yep but i doubt they'll much need for that.
>
> i hope to get onto the beanutils release work this week. if you've got
> the energy and the inclination, maybe you'd like to stick around and
> help push beanutils forwards a little. beanutils has been very short of
> developer energy for quite a while now.
>
> - robert
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
>



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


Re: [beanutils] LazyDynaClass and LazyDynaBean Bug [29879]

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
On 5 Jul 2004, at 01:37, Niall Pemberton wrote:

<snip>

> The "Lazy" bean patches are two new dyna bean classes and involve no 
> changes
> to existing code - plus there are two new junit test cases to test 
> these
> classes.

true

> If I add these new classes in and someone comes back later and 
> objects, they
> can always be removed if the objections can't be resolved.

yep but i doubt they'll much need for that.

i hope to get onto the beanutils release work this week. if you've got 
the energy and the inclination, maybe you'd like to stick around and 
help push beanutils forwards a little. beanutils has been very short of 
developer energy for quite a while now.

- robert


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


Re: [beanutils] LazyDynaClass and LazyDynaBean Bug [29879]

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
Robert,

Thanks for replying and for the pointer to the wiki on etiquette.

I'll add myself to the project and I understand the point you make about
taking care over changing existing beanutils code - I'm primarily a Struts
user but with its dependancy on beanutils I realize the possible
consequences.

The "Lazy" bean patches are two new dyna bean classes and involve no changes
to existing code - plus there are two new junit test cases to test these
classes.

If I add these new classes in and someone comes back later and objects, they
can always be removed if the objections can't be resolved.

Niall

----- Original Message ----- 
From: "robert burrell donkin" <ro...@blueyonder.co.uk>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Sent: Sunday, July 04, 2004 11:28 PM
Subject: Re: [beanutils] LazyDynaClass and LazyDynaBean Bug [29879]


> hi Niall
>
> (apologies for my tardiness in replying.)
>
> infrastructure were fiddling around with nagoya a short while ago and i
> think some mail from bugzilla may have been lost for a while.
>
> thanks for taking the trouble to write recommending the patches - they
> look promising. the main problem is that though beanutils is on my
> agenda (it's the next release i'm cutting after jaxme) there's a ton of
> work i need to do on the release branch.
>
> there is a wiki page on etiquette
> (http://wiki.apache.org/jakarta-commons/JakartaCommonsEtiquette) but
> (unless anyone else has an objection) i'd be happy for you to have
> beanutils karma. (just remember to add yourself to the status file
> before committing anything.) beanutils is very short staffed (so any
> help would be gratefully accepted) but is very widely used (so there
> are a number of things that need to be borne in mind when changing
> existing code). it's probably best to discuss changes before diving in.
>
> - robert
>
> On 2 Jul 2004, at 16:27, Niall Pemberton wrote:
>
> > I created a bugzilla enhacement request (with code)  Bug [29879] to add
> > LazyDynaBean and LazyDynaClass to beanutils - I don't know if the
> > problem is
> > my end but I didn't see the usual emails arrive on this list so I
> > thought I
> > would post this as well.
> >
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=29879
> >
> > I developed "Lazy" implementations of DynaBean and DynaClass and they
> > have
> > been available for people to download from my web site for a while -
> > would
> > there be any interest in having them in beanutils?
> >
> > LazyDynaClass is an implementation of the MutableDynaClass interface
> > that
> > allows the properties of a DynaClass to be changed.
> >
> > LazyDynaBean must be used in conjunction with a MutableDynaClass and
> > automatically adds properties when its set() methods are called if the
> > property doesn't exist. The versions available on my web site only
> > dealt
> > with "simple" properties, but I now have a version that caters for
> > indexed
> > and mapped properties as well.
> >
> > This version automatically instantiates a Map when a mapped property
> > is set
> > that doesn't exist.
> >
> > It also instantiates either a List or Array when an indexed property
> > is set
> > that doesn't exist and automatically "grows" the List or Array so that
> > it is
> > big enough to cater for the index being set.
> >
> > Quite a few people seem to be using them now and I've had good
> > feedback.
> >
> > I'm not sure of the Commons "etiquette" here - I was recently voted a
> > Commons committer for the Validation project - but I guess I don't have
> > karma for beanutils and even if I have, houldn't just plough in adding
> > stuff
> > without the existing Beanutils commiters say so?
> >
> > Niall
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
>



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


Re: [beanutils] LazyDynaClass and LazyDynaBean Bug [29879]

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
hi Niall

(apologies for my tardiness in replying.)

infrastructure were fiddling around with nagoya a short while ago and i 
think some mail from bugzilla may have been lost for a while.

thanks for taking the trouble to write recommending the patches - they 
look promising. the main problem is that though beanutils is on my 
agenda (it's the next release i'm cutting after jaxme) there's a ton of 
work i need to do on the release branch.

there is a wiki page on etiquette 
(http://wiki.apache.org/jakarta-commons/JakartaCommonsEtiquette) but 
(unless anyone else has an objection) i'd be happy for you to have 
beanutils karma. (just remember to add yourself to the status file 
before committing anything.) beanutils is very short staffed (so any 
help would be gratefully accepted) but is very widely used (so there 
are a number of things that need to be borne in mind when changing 
existing code). it's probably best to discuss changes before diving in.

- robert

On 2 Jul 2004, at 16:27, Niall Pemberton wrote:

> I created a bugzilla enhacement request (with code)  Bug [29879] to add
> LazyDynaBean and LazyDynaClass to beanutils - I don't know if the 
> problem is
> my end but I didn't see the usual emails arrive on this list so I 
> thought I
> would post this as well.
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=29879
>
> I developed "Lazy" implementations of DynaBean and DynaClass and they 
> have
> been available for people to download from my web site for a while - 
> would
> there be any interest in having them in beanutils?
>
> LazyDynaClass is an implementation of the MutableDynaClass interface 
> that
> allows the properties of a DynaClass to be changed.
>
> LazyDynaBean must be used in conjunction with a MutableDynaClass and
> automatically adds properties when its set() methods are called if the
> property doesn't exist. The versions available on my web site only 
> dealt
> with "simple" properties, but I now have a version that caters for 
> indexed
> and mapped properties as well.
>
> This version automatically instantiates a Map when a mapped property 
> is set
> that doesn't exist.
>
> It also instantiates either a List or Array when an indexed property 
> is set
> that doesn't exist and automatically "grows" the List or Array so that 
> it is
> big enough to cater for the index being set.
>
> Quite a few people seem to be using them now and I've had good 
> feedback.
>
> I'm not sure of the Commons "etiquette" here - I was recently voted a
> Commons committer for the Validation project - but I guess I don't have
> karma for beanutils and even if I have, houldn't just plough in adding 
> stuff
> without the existing Beanutils commiters say so?
>
> Niall
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>


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