Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 97746 invoked from network); 7 Apr 2011 09:20:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Apr 2011 09:20:46 -0000 Received: (qmail 66235 invoked by uid 500); 7 Apr 2011 09:20:46 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 66171 invoked by uid 500); 7 Apr 2011 09:20:46 -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 66162 invoked by uid 99); 7 Apr 2011 09:20:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 09:20:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Thu, 07 Apr 2011 09:20:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A8F6696842 for ; Thu, 7 Apr 2011 09:20:05 +0000 (UTC) Date: Thu, 7 Apr 2011 09:20:05 +0000 (UTC) From: "Nicolas Ivering (JIRA)" To: dev@felix.apache.org Message-ID: <796341194.40315.1302168005673.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (FELIX-2907) Problem calling _setInstanceManager on guice enhanced classe 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 Problem calling _setInstanceManager on guice enhanced classe ------------------------------------------------------------ Key: FELIX-2907 URL: https://issues.apache.org/jira/browse/FELIX-2907 Project: Felix Issue Type: Bug Components: iPOJO Affects Versions: iPOJO-1.8.0 Reporter: Nicolas Ivering Priority: Minor If a pojo is created by some class enhancer, for example a method interceptor enhanced object returned by guice, the call to _setInstanceManager in InstanceManager fails. The reason is that the enhanced class is a subclass of the original pojo and that class only has the methods it chose to override. One solution to this is to travel up the class hierarchy until the _setInstanceManager method is found or Class.getSubclass() returns null (in which case we throw the usual error. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira