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 39E38200B86 for ; Sun, 18 Sep 2016 21:14:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 38BF7160AC3; Sun, 18 Sep 2016 19:14:59 +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 72CDB160A8C for ; Sun, 18 Sep 2016 21:14:58 +0200 (CEST) Received: (qmail 79320 invoked by uid 500); 18 Sep 2016 19:14:57 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 79309 invoked by uid 99); 18 Sep 2016 19:14:57 -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; Sun, 18 Sep 2016 19:14:57 +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 CBBA1C0115 for ; Sun, 18 Sep 2016 19:14:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.702 X-Spam-Level: X-Spam-Status: No, score=-0.702 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-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 hM-HkMr599y9 for ; Sun, 18 Sep 2016 19:14:55 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id CB66A5F30E for ; Sun, 18 Sep 2016 19:14:54 +0000 (UTC) Received: from [192.168.1.6] ([89.12.83.40]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M09Ee-1arP293bYK-00uEwG for ; Sun, 18 Sep 2016 21:14:53 +0200 Subject: Re: TeamCity back on track To: dev@groovy.apache.org References: <57DE46EA.2030704@gmx.org> <57DE6D1C.7040404@gmx.org> <334885618.2708801.1474197075494.JavaMail.zimbra@u-pem.fr> <1784816423.2715948.1474203821312.JavaMail.zimbra@u-pem.fr> From: Jochen Theodorou Message-ID: <57DEE7AB.8040800@gmx.org> Date: Sun, 18 Sep 2016 21:14:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <1784816423.2715948.1474203821312.JavaMail.zimbra@u-pem.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:MMwrsKYcRG8o24jHIXQ1Tv9tNQz+ez805Mzgsyqjg66gckhHlFp Kco6+Qdy53TdEYGv35BKQnlr/RPFXapJbcsGDDn5QdFxKZw+UYosygFJ+tCxYDMhXujHoSb sGOBENMQBbLM9/oiq4P3KVqnOc0/HaECvy91aCDHXNgbIi9Vr6vKVzCJt5Q2ortw0AQCg36 FF/wY6n8cxdbvX5eq1MpA== X-UI-Out-Filterresults: notjunk:1;V01:K0:pURuH7pmvyE=:8+YZS7wfd6X/dalcg8xYAp u6O7RY1vKUeW5I15sK57kXakkCSrzDqQeH+cxcaIvhsEpHX1JRpbSy3vGnyUtih0RV4AYn2OU QrmD4vwtyOIvHwwpvhKwvDW3QMYvQy4hmoZG7W0SWR3XSAv4mF/G/yENah9t6A6KbadMlBvTs B35COMy5DTC/X0lN9yeS2wpWu1ogg/88MVG2bbmO+RP3eMeN4LrSNZdru5OupDgl5ZwiNSYek xYepT/2ULeekVONl+oC6Sim28j52YPK8MnxeHQrzr2Fs5T2k+5en9M0Np71rMhLaEEyfEWpyn JvUkyYHN5g7SwJpHkbrJgAFNzwiDIuWyK4OOdKYdkEjk/R8AyQDiGcDQQB+qKelItc6+erMi7 A/1vt3hrLRIBTOiSjHPTYULleY/Iu59mFzDR4D6U0/8atBg523AKcnJruSJo7eGiCJAvhDe/c TZrxcGRw0cZNsg92ZjuixPA+BUeGe9ic/scuyDTAioNy82PvCKRj0uX4eItdM9iuhWtwGgcWL WOsGGckyViMywq+llH1bVEoY2AQ/Cn/PKEXeZ7xxDfp118FDTV5tfb4qkF2mqXxYIONp71RfM TulsX499OSDooogZRgHhM8nF0UCzIxZIKiKZefB24hSQFBLwcl/vS01nkRK8dE+EMsoKfvhEw hVKw5qKs5qCJ3Crv5NnD2SpgnyMA6fqdDIEry07wn4FD7CbzK2mYEso6397OXshhZCktK76AZ GwGAW8YvXa/HGY0cPYJ9ehD+frSIUarV9c3IRcr4KUIgYK8RebVSqmqlQqNLgUKr2NB318h6C ej/Sv/5 archived-at: Sun, 18 Sep 2016 19:14:59 -0000 On 18.09.2016 15:03, Remi Forax wrote: > > > ------------------------------------------------------------------------ > > *De: *"Cédric Champeau" > *À: *dev@groovy.apache.org > *Envoyé: *Dimanche 18 Septembre 2016 14:39:30 > *Objet: *Re: TeamCity back on track > > I can confirm this is a new error. Gradle 3.0 works with b119, but > not b136. And from what I can see, this is *not* going to be trivial > to fix. Best I could get now is: > Caused by: java.lang.IllegalAccessException: class > org.gradle.internal.reflect.JavaMethod cannot access a member of > class java.lang.ClassLoader (in module java.base) with modifiers > "protected" > at > java.base/jdk.internal.reflect.Reflection.throwIllegalAccessException(Reflection.java:405) > at > java.base/jdk.internal.reflect.Reflection.throwIllegalAccessException(Reflection.java:396) > at > java.base/jdk.internal.reflect.Reflection.ensureMemberAccess(Reflection.java:98) > at > java.base/java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:359) > at > java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:351) > at java.base/java.lang.reflect.Method.invoke(Method.java:529) > at > org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:77) > > Which is f* annoying. [...] > This one is a new bug/feature, > it's part of what we have called 'stronger' (not strong) encapsulation > i.e. most of the classes of java.* disallow setAccessible, before that > only internal packages were disallowing setAccessible. so setAccessible is forbidden, but a subclass from a different module can access the method... strange new rules. Anyway... was there a thread on jigsaw-dev about this? I would like to reread the proposal > For your specific bug, you can use ClassLoader.getDefinedPackages() or > classloader.getUnamedModule().getPackages() instead. of course with the disadvantage that these are JDK9 only methods. bye Jochen