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 A8E3018CCD for ; Fri, 31 Jul 2015 08:42:06 +0000 (UTC) Received: (qmail 77770 invoked by uid 500); 31 Jul 2015 08:42:06 -0000 Delivered-To: apmail-zest-dev-archive@zest.apache.org Received: (qmail 77728 invoked by uid 500); 31 Jul 2015 08:42:06 -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 77716 invoked by uid 99); 31 Jul 2015 08:42:06 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Jul 2015 08:42:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E2E4F1A9315 for ; Fri, 31 Jul 2015 08:42:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4 X-Spam-Level: **** X-Spam-Status: No, score=4 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id HPBVmSuDrmyl for ; Fri, 31 Jul 2015 08:42:00 +0000 (UTC) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id E1799428DC for ; Fri, 31 Jul 2015 08:41:59 +0000 (UTC) Received: from mfilter36-d.gandi.net (mfilter36-d.gandi.net [217.70.178.167]) by relay2-d.mail.gandi.net (Postfix) with ESMTP id 0D73FC5A70 for ; Fri, 31 Jul 2015 10:41:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter36-d.gandi.net Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by mfilter36-d.gandi.net (mfilter36-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id MroXRsXYC7+b for ; Fri, 31 Jul 2015 10:41:21 +0200 (CEST) X-Originating-IP: 80.215.247.154 Received: from [192.168.42.85] (unknown [80.215.247.154]) (Authenticated sender: paul@nosphere.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 468EFC5A69 for ; Fri, 31 Jul 2015 10:41:21 +0200 (CEST) Message-ID: <55BB34AE.10406@nosphere.org> Date: Fri, 31 Jul 2015 10:41:18 +0200 From: Paul Merlin User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: dev@zest.apache.org Subject: Re: Groovy support is somewhat broken. References: In-Reply-To: X-Enigmail-Version: 1.2.3 Content-Type: multipart/alternative; boundary="------------030001080708070005040808" --------------030001080708070005040808 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey, GroovyMixin works '=C3=A0 la' scripting. It loads groovy code from resources. Maybe that's what makes IDEA go wild. With Netbeans I have no issue using GroovyMixin IF the .groovy files resides in src/main/resources instead of src/main/groovy as it then must be considered as plain resources, note code that is part of the classpath= . Note that Groovy and Zest are perfectly usable without this Groovy Mixin. See https://zest.apache.org/java/develop/lang-groovy.html /Paul Niclas Hedhman a =C3=A9crit : > The way the GroovyMixin works is that it locates a Groovy file with the > same name as the Mixin that it is to implement, only difference is the > .groovy instead of .java. > > That seems to work in runtime, but IDEA doesn't like it, when Groovy pl= ugin > is installed. It protests that there are two classes with the same name= in > the same package (kind of rightly so). > > Also, in the Java world, the Mixin implementation is not bound to "per > interface", but solely to the Method (incl the method's declaring class= ). > > So, I wanted like to change the GroovyMixin to resolve the implementati= on > in some other manner, like; > > module > .forMixin( Mixin1.class ) > .setMetaInfo( new String[]{ Do1Impl.class.getName() } ); > > > or something similar. BUT, that is not really possible, since > AppliesToFilters can not get any injections from @Structure or elsewher= e, > so it is not possible to pick up. > > Can anyone think of any other way to do a "second level" (generics-like= ) > declarations for telling a Mixin which implementation to use? > > > Cheers --------------030001080708070005040808--