Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 79181 invoked from network); 1 Sep 2004 16:22:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Sep 2004 16:22:39 -0000 Received: (qmail 13182 invoked by uid 500); 1 Sep 2004 16:22:31 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 13090 invoked by uid 500); 1 Sep 2004 16:22:30 -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 13076 invoked by uid 99); 1 Sep 2004 16:22:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 01 Sep 2004 09:22:29 -0700 Received: (qmail 13964 invoked by uid 50); 1 Sep 2004 16:24:10 -0000 Date: 1 Sep 2004 16:24:10 -0000 Message-ID: <20040901162410.13963.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 30959] - [collections] fails the method TransformedMap.transformedMap X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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=30959 [collections] fails the method TransformedMap.transformedMap ------- Additional Comments From tirso.canela@altana.es 2004-09-01 16:24 ------- Sorry, my english is very bad. PROBLEM: I think Method MapUtils.transformedMap fails because method TransformedMap.transformedMap fails too, because internally the constructor TransformerMap takes the parameters but it doesn´t perform anything with them. See Attachment Test Case: I want to add 5 to each one of the members of the Map: 1) FIRST TEST: DOESN´T WORKS (because internally the constructor TransformerMap takes the parameters but it doesn´t perform anything with them.) 2) SECOND TEST: IT WORKS, but i think that it is not a correct solution or i don´t understand the MapUtils.transformedMap philosophia. 3) One possible solution could be changing TrasformerMap constructor like this: protected TransformedMap(Map map, Transformer keyTransformer, Transformer valueTransformer) { super(map); this.keyTransformer = keyTransformer; this.valueTransformer = valueTransformer; //New transformMap(map); } 4) Another possible solution could be changing the method TransformedMap.transformMap from protected to public. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org