You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/05/25 16:00:47 UTC

DO NOT REPLY [Bug 29203] New: - Indexed properties with Array type cause IllegalArgumentException in setProperty/populate

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29203>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Indexed properties with Array type cause IllegalArgumentException in setProperty/populate

           Summary: Indexed properties with Array type cause
                    IllegalArgumentException in setProperty/populate
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: obsidian@panix.com


If you attempt:

public String[] getIndexedArrayProperty(int index)
public void setIndexedArrayProperty(int index,String newvalue[])

...this will fail with an IllegalArgumentException in PropertyUtilsBean, because
setProperty will decide to store the first element of the newvalue array rather
than the whole array.

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