Return-Path: X-Original-To: apmail-groovy-dev-archive@minotaur.apache.org Delivered-To: apmail-groovy-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 9164E18317 for ; Sat, 28 Nov 2015 09:20:36 +0000 (UTC) Received: (qmail 98633 invoked by uid 500); 28 Nov 2015 09:20:36 -0000 Delivered-To: apmail-groovy-dev-archive@groovy.apache.org Received: (qmail 98579 invoked by uid 500); 28 Nov 2015 09:20:36 -0000 Mailing-List: contact dev-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.incubator.apache.org Delivered-To: mailing list dev@groovy.incubator.apache.org Received: (qmail 98569 invoked by uid 99); 28 Nov 2015 09:20:36 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Nov 2015 09:20:36 +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 8EBE0C05AC for ; Sat, 28 Nov 2015 09:20:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id CCgGmw0Rcy02 for ; Sat, 28 Nov 2015 09:20:27 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 54F3C42B19 for ; Sat, 28 Nov 2015 09:20:27 +0000 (UTC) Received: from [192.168.1.5] ([85.180.104.243]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LeSOH-1aevVU24qb-00qA7L for ; Sat, 28 Nov 2015 10:20:25 +0100 Subject: Re: challenges through Java modules (aka jigsaw) To: dev@groovy.incubator.apache.org References: <56164EAB.1030302@gmx.org> <5648ADB3.9090906@gmx.org> <56570630.4060401@gmx.org> <56574CFC.4030204@gmx.net> <56576B9E.3040601@gmx.org> From: Jochen Theodorou Message-ID: <565971D8.4050502@gmx.org> Date: Sat, 28 Nov 2015 10:20:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:3AGD2r1KmiJkL/OacJCq5QZ7HusQSzIDoyZ9F8X+4dpirWaQDb2 Mp2k/GTNWoN+HgDa4vPM2o6xNfUdaBk3aVpXeJPR5nYdDlST33FGQ9h0J4itz8w1IO+ptsI hoWqCDxBZ5AqlS7RdZE3JxZJqybgeW3xZNCFssNNvChk7U+aVKhpZDcHgdi/TnMJ88L8Gw5 6xCaudCMadfACpyDmfwvA== X-UI-Out-Filterresults: notjunk:1;V01:K0:3uLFdG322pM=:tQzWDk5m6ST6DRbZ1hqAAZ PVglhFd0lOpCtpAjUoJ7Rsf08njSLjFgXuaz35dncUEvgdwGblG+9+J5+ii7XLXS55oC/FL+4 OqP2h+yFihHBtGFwRbPwV2pIMuWGuu0IkBTRE2Gdp8na6czgUsh+z9294/J10txaMDkY8nQUK T7x+3165QRHJhN6dszCB14kfEorr0h15GErO8fVtch/GRN6iTdMk1aNfNZwBjOD6n88lwBCkb /CPU1vYaFLhkAise+r3ywepCF3iUqpBSYcgFXOLgX0TrqO4fOZRhr/jVwxSP88WDnewoU6Ems zvwiVpaofBQU5mZE5yZKIrKzo8qVC3Jd3FkWuNldxN6Q0rczijjcdEOtb3MHYtdzrQbUKU1M6 ChvH1V8yx5FBqdY3tVT7AbyXQC1ui7Ka9Q+COTnHR7mFd8HgMivXbunV/+v6e5WdJx79soA4s aqo/pVHzwLs0pGRqK/Crybl6cjP8aNtNKtZ/EE68Ol1QZSXwUOUXKz4MyP7HBwoFxvv3B/FoX LcDnZSsMs8V52d1folbc8jCFcK5YogS+c1RxneZIhbeyUbF+9sZui7Za3ry8C2S161NkSSHB5 1vL0VJH8jhO2sQGNSN+ajJDLiabiWX361NAe4qUTrnK0rrQ4v9fJAGdToSomHWm25t0RGYo4b 5MZcdIiye4ZQAFLs/EdG2pEvTXCZpPNHd+Cw5G10vjTPZl14IvmlNFSP6VNaUe+dLF4vR//hY GNd190he5hFEKafvcHfW9Okrxo9DSFWTUkXKInuBUY8XtnYmjj921k0KMj1qL5/17TLPgZjI7 V/I2bwO On 27.11.2015 09:24, Cédric Champeau wrote: > > > 2015-11-26 23:58 GMT+01:00 Jeff MAURY >: > > +1 for Jesper proposition with the modification that 2 being > groovy-all.jar with binary compatibility but also a Jigsaw module. > So we could have: > Groovy 3.x: several Jigsaw module refactored > Groovy 2.x: same packaging with groovy-all being a stand alone > Jigsaw module. > > > I think that's more or less strictly equivalent to the current > situation: Groovy 2 "groovy-all" being a jigsaw module can be as simple > as exporting all packages. And we don't even have to: just put the jar > on classpath and it's done. The problem comes as soon as we want to > restrict some things to internal packages. That's not fully right. Being on the classpath only means we will then be in the unnamed module. Other modules have then no way of exporting their internals to groovy (well, I think there are ways at runtime, but I am not sure). Which means groovy cannot call methods in those packages, which means those modules cannot be written in Groovy... at least that is how I do understand things. > Today, all the Groovy classes > are exposed. Everything belongs, de facto, to the public API. Well, we did not even really try to prevent this in the past. The mess could have been lowered with a more restrictive package named based convention. bye blackdrag