struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <Craig.McClana...@eng.sun.com>
Subject Re: Duplicate Code
Date Wed, 20 Sep 2000 00:41:00 GMT
Curt Hagenlocher wrote:

> I noticed that there's some code duplication between
> org.apache.struts.util.PropertyUtils and org.apache.struts.util.BeanUtils.
> Is this intentional?  Is one of these more "right" than the other, if I
> want to reuse this code in my own project?
>

Sharp eyes!

There is some redundancy at the moment because I am part way through a
separation of the code that deals strictly with Java reflection
(PropertyUtils) and the code that will deal with conversion to and from
request parameters (BeanUtils).  At the moment, PropertyUtils is looking
pretty solid -- BeanUtils will shortly be shedding the methods that are
duplications, which should be completed in time for the 1.0 release I'd like
to have by ApacheCon Europe (Oct 23-25).

If there are particular methods in BeanUtils you are planning to use let me
know and I can warn of potential problems.

>
> --
> Curt Hagenlocher
> curth@motek.com

Craig

--
====================
See you at ApacheCon Europe <http://www.apachecon.com>!
Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
                                    Applications to Tomcat



Mime
View raw message