Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E6EDD762 for ; Thu, 13 Dec 2012 07:45:24 +0000 (UTC) Received: (qmail 80298 invoked by uid 500); 13 Dec 2012 07:45:23 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 80117 invoked by uid 500); 13 Dec 2012 07:45:22 -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 80094 invoked by uid 99); 13 Dec 2012 07:45:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 07:45:21 +0000 Date: Thu, 13 Dec 2012 07:45:21 +0000 (UTC) From: "Daan de Wit (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-3812) constructor injection does not work for properties MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-3812?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1353= 0763#comment-13530763 ]=20 Daan de Wit commented on FELIX-3812: ------------------------------------ Getting parameter names at runtime actually is possible when the code is co= mpiled with debug information. That is how Spring works, they use ASM to ge= t the information, so I think it's not provided by the standard Java reflec= tion classes. I'm fine with using the name argument on the annotation though, it's just a= minor inconvenience having to type the names twice.=20 But if the name argument is mandatory for constructor arguments, I think th= e error message should state that clearly. =20 > constructor injection does not work for properties > -------------------------------------------------- > > Key: FELIX-3812 > URL: https://issues.apache.org/jira/browse/FELIX-3812 > Project: Felix > Issue Type: Bug > Components: iPOJO > Affects Versions: ipojo-core-1.8.2, ipojo-core-1.8.4 > Reporter: Daan de Wit > Assignee: G=C3=B6kt=C3=BCrk Gezer > > Constructor injection does not work for properties, iPOJO tries to find a= constructor that also has an InstanceManager-argument.=20 > createInstance -> Cannot invoke the constructor (method not found) : pack= age.ClassName.(org.apache.felix.ipojo.InstanceManager, null) > java.lang.NoSuchMethodException: package.ClassName.(org.apache.feli= x.ipojo.InstanceManager, null) > =09at java.lang.Class.getConstructor0(Class.java:2706) > =09at java.lang.Class.getDeclaredConstructor(Class.java:1985) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira