Question about PropUtils.copyProperties()

2001-03-08 Thread Bryan Field-Elliot

Question -- in evaluating names of properties (get/setter methods), does 
it do a case-INsensitive match, or case-sensitive?

Due to the tool I'm using, some classes have method names like:

getcc_number()
putcc_number()

while others will have it as:

getCc_number()
putCc_number()

Will these be considered a "match" by the copyProperties() function?

Thanks,
Bryan




Re: Question about PropUtils.copyProperties()

2001-03-08 Thread Maya Muchnik

All getters and setters have to follow a JavaBean convention. This means
you can have getCc_number(), not getcc_number(). The second thing the
properties names have to match (case sensitive) in a source and destination
beans.

Bryan Field-Elliot wrote:

 Question -- in evaluating names of properties (get/setter methods), does
 it do a case-INsensitive match, or case-sensitive?

 Due to the tool I'm using, some classes have method names like:

 getcc_number()
 putcc_number()

 while others will have it as:

 getCc_number()
 putCc_number()

 Will these be considered a "match" by the copyProperties() function?

 Thanks,
 Bryan