Return-Path: Delivered-To: apmail-felix-commits-archive@www.apache.org Received: (qmail 6626 invoked from network); 17 Dec 2010 15:23:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Dec 2010 15:23:34 -0000 Received: (qmail 95112 invoked by uid 500); 17 Dec 2010 15:23:34 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 94929 invoked by uid 500); 17 Dec 2010 15:23:32 -0000 Mailing-List: contact commits-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list commits@felix.apache.org Received: (qmail 94912 invoked by uid 99); 17 Dec 2010 15:23:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Dec 2010 15:23:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Dec 2010 15:23:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F2031238897D; Fri, 17 Dec 2010 15:23:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1050416 - /felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java Date: Fri, 17 Dec 2010 15:23:09 -0000 To: commits@felix.apache.org From: clement@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101217152309.F2031238897D@eris.apache.org> Author: clement Date: Fri Dec 17 15:23:08 2010 New Revision: 1050416 URL: http://svn.apache.org/viewvc?rev=1050416&view=rev Log: Fix FELIX-2732 Compute the id by removing the 'modified' prefix if possible: modifiedFoo => Foo Modified: felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java Modified: felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java?rev=1050416&r1=1050415&r2=1050416&view=diff ============================================================================== --- felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java (original) +++ felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java Fri Dec 17 15:23:08 2010 @@ -314,8 +314,10 @@ public class MethodCollector extends Emp m_id = m_name.substring("bind".length()); } else if (m_name.startsWith("unbind")) { m_id = m_name.substring("unbind".length()); + } else if (m_name.startsWith("modified")) { + m_id = m_name.substring("modified".length()); } else { - System.err.println("Cannot determine the id of the bind method : " + m_name); + System.err.println("Cannot determine the id of the " + m_type + " method : " + m_name); return; } }