You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@groovy.apache.org by Russel Winder <ru...@winder.org.uk> on 2018/06/15 13:59:22 UTC

Possible Problem

I have been tinkering a bit with GPars,mostly as a reaction to JCP 1.1.0 being
released (to replace my jcsp-1.1-rc-5 artefact). I amusing JDK11 and JDK10
with Groovy 2.5.0.

In this example programme:

https://github.com/GPars/GPars/blob/master/src/test/groovy/groovyx/gpars/samples/collections/DemoSynchronizedAccountTransfer.groovy

It seems the synchronized keyword on the function credit line 29 is cause a
problem during compilation:

Error:Groovyc: ASM reporting processing error for groovyx.gpars.samples.collections.Account#credit with signature void credit(int) in DemoSynchronizedAccountTransfer.groovy:29


-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk

Re: Possible Problem

Posted by Russel Winder <ru...@winder.org.uk>.
On Sat, 2018-06-16 at 11:35 -0700, John Wagenleitner wrote:
> Looks like the problem is with the compound assignment using an attribute
> and not related to synchronized. I created issue GROOVY-8648 [1] for this
> problem.
> 
> [1] https://issues.apache.org/jira/browse/GROOVY-8648
> 

John,

Thanks for attacking this and discovering I had the wrong reason for the
problem. Thanks also for creating the issue. I am now watching this and can
try any experiments using master.

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk

Re: Possible Problem

Posted by John Wagenleitner <jo...@gmail.com>.
Looks like the problem is with the compound assignment using an attribute
and not related to synchronized. I created issue GROOVY-8648 [1] for this
problem.

[1] https://issues.apache.org/jira/browse/GROOVY-8648

On Fri, Jun 15, 2018 at 6:59 AM Russel Winder <ru...@winder.org.uk> wrote:

> I have been tinkering a bit with GPars,mostly as a reaction to JCP 1.1.0
> being
> released (to replace my jcsp-1.1-rc-5 artefact). I amusing JDK11 and JDK10
> with Groovy 2.5.0.
>
> In this example programme:
>
>
> https://github.com/GPars/GPars/blob/master/src/test/groovy/groovyx/gpars/samples/collections/DemoSynchronizedAccountTransfer.groovy
>
> It seems the synchronized keyword on the function credit line 29 is cause a
> problem during compilation:
>
> Error:Groovyc: ASM reporting processing error for
> groovyx.gpars.samples.collections.Account#credit with signature void
> credit(int) in DemoSynchronizedAccountTransfer.groovy:29
>
>
> --
> Russel.
> ===========================================
> Dr Russel Winder      t: +44 20 7585 2200
> 41 Buckmaster Road    m: +44 7770 465 077
> London SW11 1EN, UK   w: www.russel.org.uk
>