struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Kerkhoff <m...@BESToffers.de>
Subject PropertyUtils.getPropertyType() vs. PropertyUtils.getPropertyDescriptor()
Date Sun, 12 Nov 2000 14:57:11 GMT
The javadoc description of PropertyUtils.getPropertyType() states:

    "This method follows the same name resolution rules used by
     getPropertyDescriptor(), so if the last element of a name
     reference is indexed, the type of the property itself will
     be returned."                     ^^^^^^^^^^^^^^^^^^^

and the description of getPropertyDescriptor() in the same class

    "This method resolves indexed and nested property references
     in the same manner as other methods in this class, except
     if the last (or only) name element is indexed, the descriptor
     for the property itself is returned."
         ^^^^^^^^^^^^^^^^^^^

The descriptions are (at least) misleading, because the same term
"the property itsself" is used in an ambiguious way.
Once it stands for the descriptor of the _array_ (in
getPropertyDescriptor) and the other time for the _element_ type
(in getPropertyType).

Could someone please update the description(s) to better reflect
what they're actually returning ?

-- 
Matthias                          mailto:make@BESToffers.de



Mime
View raw message