Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 467C78C16 for ; Tue, 13 Sep 2011 19:09:38 +0000 (UTC) Received: (qmail 20476 invoked by uid 500); 13 Sep 2011 19:09:37 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 19745 invoked by uid 500); 13 Sep 2011 19:09:32 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 19676 invoked by uid 99); 13 Sep 2011 19:09:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 19:09:30 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 19:09:29 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E346D96080 for ; Tue, 13 Sep 2011 19:09:08 +0000 (UTC) Date: Tue, 13 Sep 2011 19:09:08 +0000 (UTC) From: "Simone Tripodi (JIRA)" To: issues@commons.apache.org Message-ID: <1861219208.23535.1315940948927.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <158548827.23024.1315935909317.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OGNL-21) Remove dead and broken code from OgnlRuntime/SimpleNode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OGNL-21?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13103913#comment-13103913 ] Simone Tripodi commented on OGNL-21: ------------------------------------ Thanks for contributing Daniel, anyway before applying the patch I would like to make sure that code is unnecessary, your words "there are some *apparently* unnecessary methods" worry me a little. What is the metric you used to check dead code? Many thanks in advance! > Remove dead and broken code from OgnlRuntime/SimpleNode > ------------------------------------------------------- > > Key: OGNL-21 > URL: https://issues.apache.org/jira/browse/OGNL-21 > Project: OGNL > Issue Type: Task > Reporter: Daniel Pitts > Labels: cleanup > Attachments: Remove-dead-code.patch > > > I noticed there are some apparently unnecessary methods in both SimpleNode and OgnlRuntime. > I've created a patch which removes them, and the unit tests still run fine. > One of the methods was clearly buggy and would cause ClassCastExceptions if used (it put an array into a cache which was used to also store Maps). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira