Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CDDF1200C67 for ; Mon, 15 May 2017 18:49:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CC603160BC2; Mon, 15 May 2017 16:49:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1E10E160BA9 for ; Mon, 15 May 2017 18:49:32 +0200 (CEST) Received: (qmail 12294 invoked by uid 500); 15 May 2017 16:49:32 -0000 Mailing-List: contact dev-help@polygene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@polygene.apache.org Delivered-To: mailing list dev@polygene.apache.org Received: (qmail 12283 invoked by uid 99); 15 May 2017 16:49:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2017 16:49:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E8EBBC150F for ; Mon, 15 May 2017 16:49:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.524 X-Spam-Level: X-Spam-Status: No, score=-0.524 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.796, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id t2NFWdlZz2bO for ; Mon, 15 May 2017 16:49:30 +0000 (UTC) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 3FCC65F341 for ; Mon, 15 May 2017 16:49:30 +0000 (UTC) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by relay7-d.mail.gandi.net (Postfix) with ESMTPS id 08DF43806 for ; Mon, 15 May 2017 18:49:29 +0200 (CEST) Received: from mfilter1-d.gandi.net (mfilter1-d.gandi.net [217.70.178.130]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id E6565A80D8 for ; Mon, 15 May 2017 18:49:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter1-d.gandi.net Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter1-d.gandi.net (mfilter1-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 7NJi7-AJTjZY for ; Mon, 15 May 2017 18:49:28 +0200 (CEST) X-Originating-IP: 212.195.187.94 Received: from parangon.local (bne75-h07-212-195-187-94.dsl.sta.abo.bbox.fr [212.195.187.94]) (Authenticated sender: paul@nosphere.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 57B91A80CB for ; Mon, 15 May 2017 18:49:28 +0200 (CEST) Message-ID: <5919DC17.5020104@apache.org> Date: Mon, 15 May 2017 18:49:27 +0200 From: Paul Merlin User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: dev@polygene.apache.org Subject: Re: Massive bug... References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------020403070006090802020507" archived-at: Mon, 15 May 2017 16:49:34 -0000 --------------020403070006090802020507 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nice find. As I understand it, it's not a blocker. It doesn't work as expected when you make a mistake. We should fix this anyway! But I wouldn't hold 3.0 and fix this afterwards. Niclas, could you please fill issues to capture this? Niclas Hedhman a écrit : > Gang, > > By mistake I found a big bug... > > > @Concerns( DefaultMethodsGenericSideEffect.class ) > public interface DefaultMethodsGenericSideEffects extends DefaultMethods > { > @Override > default String sayHello( String name ) > { > return greeting().get() + ", " + name + '!'; > } > } > > @AppliesTo( DefaultMethodsFilter.class ) > public static class DefaultMethodsGenericSideEffect extends > SideEffectOf > implements InvocationHandler > { > > > > Do you see it?? Point is that there is no warning or anything, but the > SideEffect is applied as a Concern, and the value returned from the > SideEffect is the result of the method call. > > The description of the bug should be something like; "Concerns lacking > @ConcernFor injection field is not rejected as a Concern" and the same > thing is like for SideEffects, but I haven't tested that yet. > > > Cheers --------------020403070006090802020507--