You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by robert burrell donkin <ro...@blueyonder.co.uk> on 2002/09/24 22:17:10 UTC

[beanutils] second opinion on bug #12728 please

(this is probably directed at scott or craig)

could someone take a look at

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

and give a second opinion?

(i don't understand why this change is needed.)

- robert


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [beanutils] second opinion on bug #12728 please

Posted by Roland Huss <Ro...@consol.de>.
robert burrell donkin <ro...@blueyonder.co.uk> writes:

> could someone take a look at
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=12728
> 
> and give a second opinion?
> 
> (i don't understand why this change is needed.)

The original code:

        PropertyDescriptor result = null;
        FastHashMap mappedDescriptors =
                getMappedPropertyDescriptors(bean);
        // ....

        if (result == null) {
            // not found, try to create it
            try {
                result =
                        new MappedPropertyDescriptor(name, bean.getClass());
            } catch (IntrospectionException ie) {
            }
        }
        if (result != null) {
            mappedDescriptorsCache.put(name, result);
        }
        return result;

where "FastHashMap getMappedPropertyDescriptors(bean)" above finally
results in a  

   return mappedDescriptorsCache.get(bean.getClass())

So, the values of the mappedDescriptorsCache-Map should probably be
FastHashMap's, not MappedPropertyDescriptor's like 'result'. So, from
my guess Alexander is wright with his analysis, at least from a
plausibility-point-of-view.

cu....
-- 
							...roland huss
						             consol.de

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>