From commons-dev-return-20288-qmlist-jakarta-archive-commons-dev=jakarta.apache.org@jakarta.apache.org Mon Nov 25 23:25:27 2002 Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 2709 invoked from network); 25 Nov 2002 23:25:24 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Nov 2002 23:25:24 -0000 Received: (qmail 22417 invoked by uid 97); 25 Nov 2002 23:26:29 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 22401 invoked by uid 97); 25 Nov 2002 23:26:29 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 22388 invoked by uid 98); 25 Nov 2002 23:26:28 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Mon, 25 Nov 2002 15:25:17 -0800 (PST) From: "Craig R. McClanahan" To: Jakarta Commons Developers List Subject: Re: [beanutils] PropertyUtils.setProperty on classes which extend Map In-Reply-To: Message-ID: <20021125152154.Q36715-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Mon, 25 Nov 2002, robert burrell donkin wrote: > Date: Mon, 25 Nov 2002 20:01:15 +0000 > From: robert burrell donkin > Reply-To: Jakarta Commons Developers List > To: Jakarta Commons Developers > Subject: [beanutils] PropertyUtils.setProperty on classes which extend Map > > this one is in bugzilla > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14440 > > i've got a test case which shows that classes which extend map don't have > the setter called, instead the value is place into the map. i'm also > willing to take a look at creating a fix. > > just wanted to check that: is this a bug (rather than some obscure feature > i'm not aware of)? > AFAIK, we've never promised that the BeanUtils or PropertyUtils code formally support Maps as the *destination* of a property set operation, even though they are acceptable as the source in certain scenarios. In addition, if we're going to support setting via PropertyUtils, we certainly should support getting for symmetry. I think it's worth investigating whether we can support a Map as a pseudo-bean -- but that should start with a general analysis of the problem space (including the thorny issue of deciding what the "property type" of such a property should be if there is no current value for a particular key), rather than a piecemeal fix to one aspect of the situation. I'm game to participate (a little) in a discussion like that -- just don't have the cycles to lead one. Do you? > - robert > Craig -- To unsubscribe, e-mail: For additional commands, e-mail: