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 D12B9200CC9 for ; Mon, 12 Jun 2017 02:13:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CFDC1160BEA; Mon, 12 Jun 2017 00:13:31 +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 28C3F160BD7 for ; Mon, 12 Jun 2017 02:13:31 +0200 (CEST) Received: (qmail 3304 invoked by uid 500); 12 Jun 2017 00:13:30 -0000 Mailing-List: contact notifications-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 notifications@groovy.apache.org Received: (qmail 3289 invoked by uid 99); 12 Jun 2017 00:13:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2017 00:13:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 91312C07F4 for ; Mon, 12 Jun 2017 00:13:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id msRbwxzkSLTt for ; Mon, 12 Jun 2017 00:13:29 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DD6475FCA1 for ; Mon, 12 Jun 2017 00:13:27 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 104AFE0DF2 for ; Mon, 12 Jun 2017 00:13:25 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id C2A3F21E17 for ; Mon, 12 Jun 2017 00:13:21 +0000 (UTC) Date: Mon, 12 Jun 2017 00:13:21 +0000 (UTC) From: "Paul King (JIRA)" To: notifications@groovy.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (GROOVY-8144) Invoking a public method declared in a non-public class result in a IllegalAccessError MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 12 Jun 2017 00:13:32 -0000 [ https://issues.apache.org/jira/browse/GROOVY-8144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King closed GROOVY-8144. ----------------------------- > Invoking a public method declared in a non-public class result in a IllegalAccessError > -------------------------------------------------------------------------------------- > > Key: GROOVY-8144 > URL: https://issues.apache.org/jira/browse/GROOVY-8144 > Project: Groovy > Issue Type: Bug > Components: Static compilation > Affects Versions: 2.5.0-alpha-1 > Reporter: paolo di tommaso > Assignee: John Wagenleitner > Fix For: 2.5.0-beta-1 > > > For example: > {code} > import groovyx.gpars.agent.Agent > import groovy.transform.CompileStatic > @CompileStatic > class Dummy { > def void foo() { > def x = new Agent( [] ) > x.send { List it -> it.add(1) } > x.await() > } > } > new Dummy().foo() > java.lang.IllegalAccessError: tried to access class groovyx.gpars.agent.AgentBase from class Dummy > at Dummy.foo(ConsoleScript15:10) > at Dummy$foo.call(Unknown Source) > at ConsoleScript15.run(ConsoleScript15:16) > {code} > I guess the problem is that AgentBase class is not declared public > https://github.com/GPars/GPars/blob/master/src/main/groovy/groovyx/gpars/agent/AgentBase.java#L34 > This is a regression, see also this thread https://groups.google.com/d/msg/groovy-user/0Ig9mhRLnKk/LWsx1EQbu_4J -- This message was sent by Atlassian JIRA (v6.3.15#6346)