Return-Path: X-Original-To: apmail-zest-dev-archive@minotaur.apache.org Delivered-To: apmail-zest-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 30EB618036 for ; Mon, 16 Nov 2015 15:24:50 +0000 (UTC) Received: (qmail 86394 invoked by uid 500); 16 Nov 2015 15:24:50 -0000 Delivered-To: apmail-zest-dev-archive@zest.apache.org Received: (qmail 86344 invoked by uid 500); 16 Nov 2015 15:24:49 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 86333 invoked by uid 99); 16 Nov 2015 15:24:47 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2015 15:24:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8DC52C2585 for ; Mon, 16 Nov 2015 15:24:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1 X-Spam-Level: * X-Spam-Status: No, score=1 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Xoom8osNq6t8 for ; Mon, 16 Nov 2015 15:24:40 +0000 (UTC) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id A148742B20 for ; Mon, 16 Nov 2015 15:24:40 +0000 (UTC) Received: from mfilter47-d.gandi.net (mfilter47-d.gandi.net [217.70.178.178]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id B89C241C1A6 for ; Mon, 16 Nov 2015 16:24:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter47-d.gandi.net Received: from relay5-d.mail.gandi.net ([IPv6:::ffff:217.70.183.197]) by mfilter47-d.gandi.net (mfilter47-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id KeQDk6De2WX5 for ; Mon, 16 Nov 2015 16:24:32 +0100 (CET) X-Originating-IP: 212.195.187.94 Received: from [192.168.1.3] (rab34-h03-212-195-187-94.dsl.sta.abo.bbox.fr [212.195.187.94]) (Authenticated sender: paul@nosphere.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 43B1441C185 for ; Mon, 16 Nov 2015 16:24:32 +0100 (CET) Message-ID: <5649F52E.70005@nosphere.org> Date: Mon, 16 Nov 2015 16:24:30 +0100 From: Paul Merlin User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: dev@zest.apache.org Subject: Re: Bug in @This injections?? References: In-Reply-To: X-Enigmail-Version: 1.2.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hey, Catching up ... Niclas Hedhman a écrit : > I think that "Private @This" doesn't work for Constructor injections at the > moment. > > Not sure if that is because it can't be done, or because the implementation > is lacking the feature. > > Looking at the ThisInjectionProviderFactory, I can't figure out how this is > supposed to work at all. And if anyone has interest, please enlighten me of > what we ned to do to support this properly. The previous decorator-feature > I mention, depends on this :-( Niclas Hedhman a écrit : > So, for @This injection in fields, the type is somehow added to the > Composite, but when it is injected in the Constructor, it seems to only > take the public Composite type interfaces... I tried to understand/reproduce the issue but couldn't. Also added some tests in ConstructorInjectionOfThisTest and PrivateMixinTest by the way, with no luck. The latter existing test was wrong as under-test Work fragment was declared as a *public* mixin. /Paul