Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 63255 invoked from network); 22 Aug 2010 14:15:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Aug 2010 14:15:59 -0000 Received: (qmail 6020 invoked by uid 500); 22 Aug 2010 14:15:59 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 5712 invoked by uid 500); 22 Aug 2010 14:15:57 -0000 Mailing-List: contact dev-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 dev@felix.apache.org Received: (qmail 5703 invoked by uid 99); 22 Aug 2010 14:15:55 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Aug 2010 14:15:55 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Aug 2010 14:15:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7MEFFcU026994 for ; Sun, 22 Aug 2010 14:15:17 GMT Message-ID: <5052023.494741282486515842.JavaMail.jira@thor> Date: Sun, 22 Aug 2010 10:15:15 -0400 (EDT) From: "Clement Escoffier (JIRA)" To: dev@felix.apache.org Subject: [jira] Resolved: (FELIX-2542) Annotations on methods parameters are not moved on public methods after manipulation In-Reply-To: <21825786.362181281952455722.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clement Escoffier resolved FELIX-2542. -------------------------------------- Resolution: Fixed Fixed in trunk. Parameter Annotations were not moved to the interceptor method during the annotation processing. This is now fixed. As for method annotations, only annotation visible at runtime are moved, others are ignored. > Annotations on methods parameters are not moved on public methods after manipulation > ------------------------------------------------------------------------------------ > > Key: FELIX-2542 > URL: https://issues.apache.org/jira/browse/FELIX-2542 > Project: Felix > Issue Type: Bug > Components: iPOJO > Affects Versions: iPOJO-1.6.0 > Environment: Win xp, java 1.6 > Reporter: Nicolas Dumont > Assignee: Clement Escoffier > Priority: Minor > Fix For: iPOJO-1.8.0 > > > The iPojo byte code manipulation replace real public method with private one, and annotation on methods are moved to the new public methods. But this behavior is not used for parameters annotations. > For exemple : > public class MyClass { > @MyAnnotation > public void myMethod(@MyParameterAnnotation int param) { > //my code here > } > } > is transformed into: > public class MyClass { > @MyAnnotation > public void myMethod(int param) { > // iPojo code here > } > private void _myMethod(@MyParameterAnnotation int param) { > // my code here > } > It should have been transformed into: > public class MyClass { > @MyAnnotation > public void myMethod(@MyParameterAnnotation int param) { > // iPojo code here > } > private void _myMethod(int param) { > // my code here > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.