From dev-return-7373-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Sun Jun 13 10:04:18 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 7CF1A180648 for ; Sun, 13 Jun 2021 12:04:18 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 6ADE13ED26 for ; Sun, 13 Jun 2021 10:04:17 +0000 (UTC) Received: (qmail 23610 invoked by uid 500); 13 Jun 2021 10:04:17 -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 23599 invoked by uid 99); 13 Jun 2021 10:04:17 -0000 Received: from ui-eu-02.ponee.io (HELO localhost) (116.202.110.96) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jun 2021 10:04:17 +0000 X-Mailer: LuaSocket 3.0-rc1 Date: Sun, 13 Jun 2021 10:04:15 -0000 In-Reply-To: Content-Type: text/plain; charset=utf-8 References: x-ponymail-sender: 75e4f59cc9cff943cff05cda6dad5634c634bf06 MIME-Version: 1.0 To: Subject: Re: About the tests failed on JDK16 From: Daniel Sun Message-ID: x-ponymail-agent: PonyMail Composer/0.2 FYI. "All proxy classes are not open for reflective access in Java SE 16." See also https://www.oracle.com/java/technologies/javase/16-relnotes.html core-libs/java.lang:reflect ➜ Proxy Classes Are Not Open for Reflective Access All proxy classes are not open for reflective access in Java SE 16. Prior to Java SE 16, if java.lang.reflect.Proxy was used to implement only public exported proxy interfaces, the proxy class was generated in an unnamed module which was open for reflective access. In Java SE 16, the proxy class is generated in an exported package in a named module. Programs that assume the private members of a proxy class can be made accessible via setAccessible(true) will fail with InaccessibleObjectException. Proxy classes are already defined in dynamic modules in other cases since Java SE 9. Such programs would already fail when it calls setAccessible(true) to those proxy classes prior to this change. On 2021/06/13 09:07:01, Daniel Sun wrote: > Hi all, > > I created a branch[1] to try running tests with JDK16, and I found 39 tests failed[2]. If somebody have some spare time, let's look into the issues and try to fix them together. > > [1] https://github.com/apache/groovy/tree/danielsun/tweak-build > [2] https://travis-ci.com/github/apache/groovy/jobs/513334181 > > Cheers, > Daniel Sun >