You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by Paul King <pa...@apache.org> on 2019/05/10 15:39:59 UTC

[ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Dear community,

The Apache Groovy team is pleased to announce version 3.0.0-beta-1 of
Apache Groovy.
Apache Groovy is a multi-faceted programming language for the JVM.
Further details can be found at the https://groovy.apache.org website.

This is a pre-release of a new version of Groovy.
We greatly appreciate any feedback you can give us when using this version.

This release includes 109 bug fixes/improvements as outlined in the changelog:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123&version=12344761

Sources, convenience binaries, downloadable documentation and an SDK
bundle can be found at: https://groovy.apache.org/download.html
We recommend you verify your installation using the information on that page.

Jars are also available within the major binary repositories.

We welcome your help and feedback and in particular want
to thank everyone who contributed to this release.

For more information on how to report problems, and to get involved,
visit the project website at https://groovy.apache.org/

Best regards,

The Apache Groovy team.

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by "Daniel.Sun" <su...@apache.org>.
You are welcome.

I added a test to verify the fix covering your case( No warnings :-) )
https://github.com/apache/groovy/blob/e1f044d47f4c6f82fb423d4283ac017e91d71124/src/test/groovy/bugs/Groovy9103Bug.groovy

Here is the relevant PR: https://github.com/apache/groovy/pull/934


Cheers,
Daniel.Sun



-----
Apache Groovy committer & PMC member 
Blog: http://blog.sunlan.me 
Twitter: @daniel_sun 

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by "Kerridge, Jon" <J....@napier.ac.uk>.
Daniel,
Thanks for the explanation,

Look forward to beta-2!!

Jon

-----Original Message-----
From: Daniel Sun <re...@hotmail.com>
Sent: 26 May 2019 07:51
To: dev@groovy.incubator.apache.org
Subject: RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

​

CAUTION: This email originated from outside Edinburgh Napier University. Do not follow links or open attachments if you doubt the authenticity of the sender or the content.

Hi Jon,

       Sorry for my late reply... variable value is of type Object but clone method of Object is protected, so value.clone() emits illegal access warnings.
       I am trying to make Groovy a bit smarter to find the proper clone method(I assume you have overrided the Object.clone in your sub-classes). If everything is OK, 3.0.0-beta-2 can eliminate the illegal access warnings you find.

Here is the code you.provided before:
void broadcastSeq (Object value) {
         int channels = cList.size()

         for (i in 0 ..< channels) cList[i].write(value.clone()) }

Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
This message and its attachment(s) are intended for the addressee(s) only and should not be read, copied, disclosed, forwarded or relied upon by any person other than the intended addressee(s) without the permission of the sender. If you are not the intended addressee you must not take any action based on this message and its attachment(s) nor must you copy or show them to anyone. Please respond to the sender and ensure that this message and its attachment(s) are deleted.

It is your responsibility to ensure that this message and its attachment(s) are scanned for viruses or other defects. Edinburgh Napier University does not accept liability for any loss or damage which may result from this message or its attachment(s), or for errors or omissions arising after it was sent. Email is not a secure medium. Emails entering Edinburgh Napier University's system are subject to routine monitoring and filtering by Edinburgh Napier University.

Edinburgh Napier University is a registered Scottish charity. Registration number SC018373

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by Daniel Sun <re...@hotmail.com>.
Hi Jon,

       Sorry for my late reply... variable value is of type Object but clone
method of Object is protected, so value.clone() emits illegal access
warnings.
       I am trying to make Groovy a bit smarter to find the proper clone
method(I assume you have overrided the Object.clone in your sub-classes). If
everything is OK, 3.0.0-beta-2 can eliminate the illegal access warnings you
find.

Here is the code you.provided before:
void broadcastSeq (Object value) {
         int channels = cList.size()

         for (i in 0 ..< channels) cList[i].write(value.clone())
}

Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by "Kerridge, Jon" <J....@napier.ac.uk>.
Daniel,

I can submit a JIRA ticket no problem, but producing a standalone sample code is more problematic as I do not know what has caused the problem.  My example is from a code that runs as part of a test a parallel library I am currently developing (GPP) that uses a further two libraries (CSPforJava and groovyJCSP), that create a basic parallel environment.  The problem is that this code structure has previously worked without a warning.  Is it just the clone method or is it as a result of the interaction with the other elements?

Sorry to be a pain!
Jon

-----Original Message-----
From: Daniel Sun <re...@hotmail.com>
Sent: 14 May 2019 13:31
To: dev@groovy.incubator.apache.org
Subject: RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

​

CAUTION: This email originated from outside Edinburgh Napier University. Do not follow links or open attachments if you doubt the authenticity of the sender or the content.

Yep. It seems that I find what's wrong with it ;-)

Would you please submit a JIRA ticket and attach a standalone sample code to reproduce the issue?
https://issues.apache.org/jira/projects/GROOVY/summary

Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
This message and its attachment(s) are intended for the addressee(s) only and should not be read, copied, disclosed, forwarded or relied upon by any person other than the intended addressee(s) without the permission of the sender. If you are not the intended addressee you must not take any action based on this message and its attachment(s) nor must you copy or show them to anyone. Please respond to the sender and ensure that this message and its attachment(s) are deleted.

It is your responsibility to ensure that this message and its attachment(s) are scanned for viruses or other defects. Edinburgh Napier University does not accept liability for any loss or damage which may result from this message or its attachment(s), or for errors or omissions arising after it was sent. Email is not a secure medium. Emails entering Edinburgh Napier University's system are subject to routine monitoring and filtering by Edinburgh Napier University.

Edinburgh Napier University is a registered Scottish charity. Registration number SC018373


RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by Daniel Sun <re...@hotmail.com>.
Yep. It seems that I find what's wrong with it ;-) 

Would you please submit a JIRA ticket and attach a standalone sample code to
reproduce the issue?
https://issues.apache.org/jira/projects/GROOVY/summary

Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by "Kerridge, Jon" <J....@napier.ac.uk>.
Daniel,
Thanks for the link to stack overflow much appreciated.

Herewith the stacktrace

WARNING: Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils (file:/C:/Users/JonKe/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/3.0.0-beta-1/30ff252aacc6e2b57649cdf4aeb7b9b15115a74b/groovy-3.0.0-beta-1.jar) to method java.lang.Object.clone()
at org.codehaus.groovy.reflection.ReflectionUtils.makeAccessible(ReflectionUtils.java:201)
at org.codehaus.groovy.reflection.ReflectionUtils.makeAccessible(ReflectionUtils.java:193)
at org.codehaus.groovy.reflection.ReflectionUtils$1.run(ReflectionUtils.java:186)
at org.codehaus.groovy.reflection.ReflectionUtils$1.run(ReflectionUtils.java:184)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:310)
at org.codehaus.groovy.reflection.ReflectionUtils.makeAccessibleInPrivilegedAction(ReflectionUtils.java:184)
at org.codehaus.groovy.reflection.CachedMethod.makeAccessibleIfNecessary(CachedMethod.java:376)
at org.codehaus.groovy.reflection.CachedMethod.setAccessible(CachedMethod.java:155)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.<init>(PogoMetaMethodSite.java:161)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.<init>(PogoMetaMethodSite.java:189)
at org.codehaus.groovy.reflection.CachedMethod.createPogoMetaMethodSite(CachedMethod.java:284)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createCachedMethodSite(PogoMetaMethodSite.java:149)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createPogoMetaMethodSite(PogoMetaMethodSite.java:125)
at groovy.lang.MetaClassImpl.createPogoCallSite(MetaClassImpl.java:3534)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.createPogoSite(CallSiteArray.java:149)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:163)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at GPP_Library.DataClassInterface$clone.call(Unknown Source)
at groovyJCSP.ChannelOutputList.broadcastSeq(ChannelOutputList.groovy:262)
at GPP_Library.connectors.spreaders.OneSeqCastList.run(OneSeqCastList.groovy:36)
at jcsp.lang.ParThread.run(ParThread.java:114)

The last 4 lines refer to my coding which I have already given you the code that is called within the classes referred to above.

Hope it helps
Jon

-----Original Message-----
From: Daniel Sun <re...@hotmail.com>
Sent: 14 May 2019 10:09
To: dev@groovy.incubator.apache.org
Subject: RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

​

CAUTION: This email originated from outside Edinburgh Napier University. Do not follow links or open attachments if you doubt the authenticity of the sender or the content.

FYI,
https://stackoverflow.com/questions/50435218/how-to-pass-args-to-jvm-which-running-test-with-gradle


Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
This message and its attachment(s) are intended for the addressee(s) only and should not be read, copied, disclosed, forwarded or relied upon by any person other than the intended addressee(s) without the permission of the sender. If you are not the intended addressee you must not take any action based on this message and its attachment(s) nor must you copy or show them to anyone. Please respond to the sender and ensure that this message and its attachment(s) are deleted.

It is your responsibility to ensure that this message and its attachment(s) are scanned for viruses or other defects. Edinburgh Napier University does not accept liability for any loss or damage which may result from this message or its attachment(s), or for errors or omissions arising after it was sent. Email is not a secure medium. Emails entering Edinburgh Napier University's system are subject to routine monitoring and filtering by Edinburgh Napier University.

Edinburgh Napier University is a registered Scottish charity. Registration number SC018373


RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by Daniel Sun <re...@hotmail.com>.
FYI,
https://stackoverflow.com/questions/50435218/how-to-pass-args-to-jvm-which-running-test-with-gradle


Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by "Kerridge, Jon" <J....@napier.ac.uk>.
Hi,
I tried this but it gave no further information; is this because I am using a Gradle build?

Jon

-----Original Message-----
From: Daniel Sun <re...@hotmail.com>
Sent: 14 May 2019 03:43
To: dev@groovy.incubator.apache.org
Subject: RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

​

CAUTION: This email originated from outside Edinburgh Napier University. Do not follow links or open attachments if you doubt the authenticity of the sender or the content.

Please add ` --illegal-access=debug` to JVM options and show us the complete warning(including statck trace).


Cheers,
Daniel.Sun




--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
This message and its attachment(s) are intended for the addressee(s) only and should not be read, copied, disclosed, forwarded or relied upon by any person other than the intended addressee(s) without the permission of the sender. If you are not the intended addressee you must not take any action based on this message and its attachment(s) nor must you copy or show them to anyone. Please respond to the sender and ensure that this message and its attachment(s) are deleted.

It is your responsibility to ensure that this message and its attachment(s) are scanned for viruses or other defects. Edinburgh Napier University does not accept liability for any loss or damage which may result from this message or its attachment(s), or for errors or omissions arising after it was sent. Email is not a secure medium. Emails entering Edinburgh Napier University's system are subject to routine monitoring and filtering by Edinburgh Napier University.

Edinburgh Napier University is a registered Scottish charity. Registration number SC018373

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by Daniel Sun <re...@hotmail.com>.
Please add ` --illegal-access=debug` to JVM options and show us the complete
warning(including statck trace).


Cheers,
Daniel.Sun




--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by "Kerridge, Jon" <J....@napier.ac.uk>.
Hi,
The code for the clone is called as follows from a class called ChannelOutputList

class ChannelOutputList {



    List <ChannelOutput> cList = []

    ….   Lots of other methods

   void broadcastSeq ( Object value) {



         int channels = cList.size()



         for (i in 0 ..< channels) cList[i].write(value.clone())



}








}

By means of the following definition:

class OneSeqCastList  implements CSProcess{

 ChannelInput input
ChannelOutputList outputList

void run() {
  def o = input.read()
  while ( ! (o instanceof UniversalTerminator ) ){
   outputList.broadcastSeq(o)
   o = input.read()
  }
  outputList.broadcastSeq(o)

 }

}


Hope this helps
Jon




From: Paul King <pa...@asert.com.au>
Sent: 14 May 2019 01:32
To: Groovy_Developers <de...@groovy.apache.org>
Subject: Re: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

​

CAUTION: This email originated from outside Edinburgh Napier University. Do not follow links or open attachments if you doubt the authenticity of the sender or the content.
Hi Jon,

How is the clone being invoked? We have 3 Jira issues covering illegal access warnings and two are fixed in beta-1. I can't tell just from the clone method definition whether your case might fall into the third Jira which covers some tricky cases.

Cheers, Paul.


On Tue, May 14, 2019 at 6:27 AM Kerridge, Jon <J....@napier.ac.uk>> wrote:
Hi,
I am using groovy 3 beta 1 with open Java 12 using Intellij and got the following warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils (file:/C:/Users/JonKe/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/3.0.0-beta-1/30ff252aacc6e2b57649cdf4aeb7b9b15115a74b/groovy-3.0.0-beta-1.jar) to method java.lang.Object.clone()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

The code that caused this is from a class called TestData which contains an overridden clone method:

static int cloneInstance = 1
@Override
TestData clone() {
  //println "Creating clone $cloneInstance"
  TestData newTD = new TestData()
  newTD.data = this.data
  newTD.instanceNumber = this.instanceNumber
  newTD.cloneNumber = cloneInstance
  cloneInstance += 1
  return newTD
}

Is this an expected behaviour?
Jon

Professor Jon Kerridge PhD FBCS FHEA CITP CEng
School of Computing
Edinburgh Napier University
Merchiston Campus
10 Colinton Road
Edinburgh
EH10 5DT

O1314552777
j.kerridge@napier.ac.uk<ma...@napier.ac.uk>



-----Original Message-----
From: Paul King <pa...@apache.org>>
Sent: 10 May 2019 16:40
To: dev@groovy.apache.org<ma...@groovy.apache.org>; users@groovy.apache.org<ma...@groovy.apache.org>; announce@apache.org<ma...@apache.org>
Subject: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

​

CAUTION: This email originated from outside Edinburgh Napier University. Do not follow links or open attachments if you doubt the authenticity of the sender or the content.

Dear community,

The Apache Groovy team is pleased to announce version 3.0.0-beta-1 of Apache Groovy.
Apache Groovy is a multi-faceted programming language for the JVM.
Further details can be found at the https://groovy.apache.org website.

This is a pre-release of a new version of Groovy.
We greatly appreciate any feedback you can give us when using this version.

This release includes 109 bug fixes/improvements as outlined in the changelog:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123&version=12344761

Sources, convenience binaries, downloadable documentation and an SDK bundle can be found at: https://groovy.apache.org/download.html
We recommend you verify your installation using the information on that page.

Jars are also available within the major binary repositories.

We welcome your help and feedback and in particular want to thank everyone who contributed to this release.

For more information on how to report problems, and to get involved, visit the project website at https://groovy.apache.org/

Best regards,

The Apache Groovy team.
This message and its attachment(s) are intended for the addressee(s) only and should not be read, copied, disclosed, forwarded or relied upon by any person other than the intended addressee(s) without the permission of the sender. If you are not the intended addressee you must not take any action based on this message and its attachment(s) nor must you copy or show them to anyone. Please respond to the sender and ensure that this message and its attachment(s) are deleted.

It is your responsibility to ensure that this message and its attachment(s) are scanned for viruses or other defects. Edinburgh Napier University does not accept liability for any loss or damage which may result from this message or its attachment(s), or for errors or omissions arising after it was sent. Email is not a secure medium. Emails entering Edinburgh Napier University's system are subject to routine monitoring and filtering by Edinburgh Napier University.

Edinburgh Napier University is a registered Scottish charity. Registration number SC018373

This message and its attachment(s) are intended for the addressee(s) only and should not be read, copied, disclosed, forwarded or relied upon by any person other than the intended addressee(s) without the permission of the sender. If you are not the intended addressee you must not take any action based on this message and its attachment(s) nor must you copy or show them to anyone. Please respond to the sender and ensure that this message and its attachment(s) are deleted.

It is your responsibility to ensure that this message and its attachment(s) are scanned for viruses or other defects. Edinburgh Napier University does not accept liability for any loss or damage which may result from this message or its attachment(s), or for errors or omissions arising after it was sent. Email is not a secure medium. Emails entering Edinburgh Napier University's system are subject to routine monitoring and filtering by Edinburgh Napier University.

Edinburgh Napier University is a registered Scottish charity. Registration number SC018373


Re: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by Paul King <pa...@asert.com.au>.
Hi Jon,

How is the clone being invoked? We have 3 Jira issues covering illegal
access warnings and two are fixed in beta-1. I can't tell just from the
clone method definition whether your case might fall into the third Jira
which covers some tricky cases.

Cheers, Paul.


On Tue, May 14, 2019 at 6:27 AM Kerridge, Jon <J....@napier.ac.uk>
wrote:

> Hi,
> I am using groovy 3 beta 1 with open Java 12 using Intellij and got the
> following warning:
>
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> org.codehaus.groovy.reflection.ReflectionUtils
> (file:/C:/Users/JonKe/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/3.0.0-beta-1/30ff252aacc6e2b57649cdf4aeb7b9b15115a74b/groovy-3.0.0-beta-1.jar)
> to method java.lang.Object.clone()
> WARNING: Please consider reporting this to the maintainers of
> org.codehaus.groovy.reflection.ReflectionUtils
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
>
> The code that caused this is from a class called TestData which contains
> an overridden clone method:
>
> static int cloneInstance = 1
> @Override
> TestData clone() {
>   //println "Creating clone $cloneInstance"
>   TestData newTD = new TestData()
>   newTD.data = this.data
>   newTD.instanceNumber = this.instanceNumber
>   newTD.cloneNumber = cloneInstance
>   cloneInstance += 1
>   return newTD
> }
>
> Is this an expected behaviour?
> Jon
>
> Professor Jon Kerridge PhD FBCS FHEA CITP CEng
> School of Computing
> Edinburgh Napier University
> Merchiston Campus
> 10 Colinton Road
> Edinburgh
> EH10 5DT
>
> O1314552777
> j.kerridge@napier.ac.uk
>
>
>
> -----Original Message-----
> From: Paul King <pa...@apache.org>
> Sent: 10 May 2019 16:40
> To: dev@groovy.apache.org; users@groovy.apache.org; announce@apache.org
> Subject: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released
>
> ​
>
> CAUTION: This email originated from outside Edinburgh Napier University.
> Do not follow links or open attachments if you doubt the authenticity of
> the sender or the content.
>
> Dear community,
>
> The Apache Groovy team is pleased to announce version 3.0.0-beta-1 of
> Apache Groovy.
> Apache Groovy is a multi-faceted programming language for the JVM.
> Further details can be found at the https://groovy.apache.org website.
>
> This is a pre-release of a new version of Groovy.
> We greatly appreciate any feedback you can give us when using this version.
>
> This release includes 109 bug fixes/improvements as outlined in the
> changelog:
>
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123&version=12344761
>
> Sources, convenience binaries, downloadable documentation and an SDK
> bundle can be found at: https://groovy.apache.org/download.html
> We recommend you verify your installation using the information on that
> page.
>
> Jars are also available within the major binary repositories.
>
> We welcome your help and feedback and in particular want to thank everyone
> who contributed to this release.
>
> For more information on how to report problems, and to get involved, visit
> the project website at https://groovy.apache.org/
>
> Best regards,
>
> The Apache Groovy team.
> This message and its attachment(s) are intended for the addressee(s) only
> and should not be read, copied, disclosed, forwarded or relied upon by any
> person other than the intended addressee(s) without the permission of the
> sender. If you are not the intended addressee you must not take any action
> based on this message and its attachment(s) nor must you copy or show them
> to anyone. Please respond to the sender and ensure that this message and
> its attachment(s) are deleted.
>
> It is your responsibility to ensure that this message and its
> attachment(s) are scanned for viruses or other defects. Edinburgh Napier
> University does not accept liability for any loss or damage which may
> result from this message or its attachment(s), or for errors or omissions
> arising after it was sent. Email is not a secure medium. Emails entering
> Edinburgh Napier University's system are subject to routine monitoring and
> filtering by Edinburgh Napier University.
>
> Edinburgh Napier University is a registered Scottish charity. Registration
> number SC018373
>
>

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by "Kerridge, Jon" <J....@napier.ac.uk>.
Hi,
I am using groovy 3 beta 1 with open Java 12 using Intellij and got the following warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils (file:/C:/Users/JonKe/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/3.0.0-beta-1/30ff252aacc6e2b57649cdf4aeb7b9b15115a74b/groovy-3.0.0-beta-1.jar) to method java.lang.Object.clone()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

The code that caused this is from a class called TestData which contains an overridden clone method:

static int cloneInstance = 1
@Override
TestData clone() {
  //println "Creating clone $cloneInstance"
  TestData newTD = new TestData()
  newTD.data = this.data
  newTD.instanceNumber = this.instanceNumber
  newTD.cloneNumber = cloneInstance
  cloneInstance += 1
  return newTD
}

Is this an expected behaviour?
Jon

Professor Jon Kerridge PhD FBCS FHEA CITP CEng
School of Computing
Edinburgh Napier University
Merchiston Campus
10 Colinton Road
Edinburgh
EH10 5DT

O1314552777
j.kerridge@napier.ac.uk



-----Original Message-----
From: Paul King <pa...@apache.org>
Sent: 10 May 2019 16:40
To: dev@groovy.apache.org; users@groovy.apache.org; announce@apache.org
Subject: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

​

CAUTION: This email originated from outside Edinburgh Napier University. Do not follow links or open attachments if you doubt the authenticity of the sender or the content.

Dear community,

The Apache Groovy team is pleased to announce version 3.0.0-beta-1 of Apache Groovy.
Apache Groovy is a multi-faceted programming language for the JVM.
Further details can be found at the https://groovy.apache.org website.

This is a pre-release of a new version of Groovy.
We greatly appreciate any feedback you can give us when using this version.

This release includes 109 bug fixes/improvements as outlined in the changelog:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123&version=12344761

Sources, convenience binaries, downloadable documentation and an SDK bundle can be found at: https://groovy.apache.org/download.html
We recommend you verify your installation using the information on that page.

Jars are also available within the major binary repositories.

We welcome your help and feedback and in particular want to thank everyone who contributed to this release.

For more information on how to report problems, and to get involved, visit the project website at https://groovy.apache.org/

Best regards,

The Apache Groovy team.
This message and its attachment(s) are intended for the addressee(s) only and should not be read, copied, disclosed, forwarded or relied upon by any person other than the intended addressee(s) without the permission of the sender. If you are not the intended addressee you must not take any action based on this message and its attachment(s) nor must you copy or show them to anyone. Please respond to the sender and ensure that this message and its attachment(s) are deleted.

It is your responsibility to ensure that this message and its attachment(s) are scanned for viruses or other defects. Edinburgh Napier University does not accept liability for any loss or damage which may result from this message or its attachment(s), or for errors or omissions arising after it was sent. Email is not a secure medium. Emails entering Edinburgh Napier University's system are subject to routine monitoring and filtering by Edinburgh Napier University.

Edinburgh Napier University is a registered Scottish charity. Registration number SC018373


Re: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by Guillaume Laforge <gl...@gmail.com>.
Nice to see the first beta of 3.0 out!

Guillaume


Le ven. 10 mai 2019 à 18:04, Daniel.Sun <su...@apache.org> a écrit :

> Nice work, Paul :-)
>
> Cheers,
> Daniel.Sun
>
>
>
>
> -----
> Apache Groovy committer & PMC member
> Blog: http://blog.sunlan.me
> Twitter: @daniel_sun
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
>

Re: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by "Daniel.Sun" <su...@apache.org>.
Nice work, Paul :-)

Cheers,
Daniel.Sun




-----
Apache Groovy committer & PMC member 
Blog: http://blog.sunlan.me 
Twitter: @daniel_sun 

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by "Kerridge, Jon" <J....@napier.ac.uk>.
Hi,
I am using groovy 3 beta 1 with open Java 12 using Intellij and got the following warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils (file:/C:/Users/JonKe/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/3.0.0-beta-1/30ff252aacc6e2b57649cdf4aeb7b9b15115a74b/groovy-3.0.0-beta-1.jar) to method java.lang.Object.clone()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

The code that caused this is from a class called TestData which contains an overridden clone method:

static int cloneInstance = 1
@Override
TestData clone() {
  //println "Creating clone $cloneInstance"
  TestData newTD = new TestData()
  newTD.data = this.data
  newTD.instanceNumber = this.instanceNumber
  newTD.cloneNumber = cloneInstance
  cloneInstance += 1
  return newTD
}

Is this an expected behaviour?
Jon

Professor Jon Kerridge PhD FBCS FHEA CITP CEng
School of Computing
Edinburgh Napier University
Merchiston Campus
10 Colinton Road
Edinburgh
EH10 5DT

O1314552777
j.kerridge@napier.ac.uk



-----Original Message-----
From: Paul King <pa...@apache.org>
Sent: 10 May 2019 16:40
To: dev@groovy.apache.org; users@groovy.apache.org; announce@apache.org
Subject: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

​

CAUTION: This email originated from outside Edinburgh Napier University. Do not follow links or open attachments if you doubt the authenticity of the sender or the content.

Dear community,

The Apache Groovy team is pleased to announce version 3.0.0-beta-1 of Apache Groovy.
Apache Groovy is a multi-faceted programming language for the JVM.
Further details can be found at the https://groovy.apache.org website.

This is a pre-release of a new version of Groovy.
We greatly appreciate any feedback you can give us when using this version.

This release includes 109 bug fixes/improvements as outlined in the changelog:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123&version=12344761

Sources, convenience binaries, downloadable documentation and an SDK bundle can be found at: https://groovy.apache.org/download.html
We recommend you verify your installation using the information on that page.

Jars are also available within the major binary repositories.

We welcome your help and feedback and in particular want to thank everyone who contributed to this release.

For more information on how to report problems, and to get involved, visit the project website at https://groovy.apache.org/

Best regards,

The Apache Groovy team.
This message and its attachment(s) are intended for the addressee(s) only and should not be read, copied, disclosed, forwarded or relied upon by any person other than the intended addressee(s) without the permission of the sender. If you are not the intended addressee you must not take any action based on this message and its attachment(s) nor must you copy or show them to anyone. Please respond to the sender and ensure that this message and its attachment(s) are deleted.

It is your responsibility to ensure that this message and its attachment(s) are scanned for viruses or other defects. Edinburgh Napier University does not accept liability for any loss or damage which may result from this message or its attachment(s), or for errors or omissions arising after it was sent. Email is not a secure medium. Emails entering Edinburgh Napier University's system are subject to routine monitoring and filtering by Edinburgh Napier University.

Edinburgh Napier University is a registered Scottish charity. Registration number SC018373


Re: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by "Milles, Eric (TR Tech, Content & Ops)" <er...@thomsonreuters.com>.
Missed the update to antlr4 4.7.3.

________________________________
From: Milles, Eric (TR Tech, Content & Ops) <er...@thomsonreuters.com>
Sent: Saturday, May 11, 2019 2:53 PM
To: dev@groovy.apache.org
Subject: Re: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released


I am getting the following error when processing the latest parrot parser grammar.  Is anyone else seeing this?


        [java] error(123): GroovyParser.g4:788:93: rule alt label 'castExprAlt' redefined in rule 'expression', originally in rule 'castOperandExpression'
        [java] error(123): GroovyParser.g4:789:93: rule alt label 'postfixExprAlt' redefined in rule 'expression', originally in rule 'castOperandExpression'
        [java] error(123): GroovyParser.g4:792:93: rule alt label 'unaryNotExprAlt' redefined in rule 'expression', originally in rule 'castOperandExpression'
        [java] error(123): GroovyParser.g4:798:93: rule alt label 'unaryAddExprAlt' redefined in rule 'expression', originally in rule 'castOperandExpression'



The rule alt labels are indeed repeated:


expression

    // qualified names, array expressions, method invocation, post inc/dec, type casting (level 1)

    // The cast expression must be put before pathExpression to resovle the ambiguities between type casting and call on parentheses expression, e.g. (int)(1 / 2)

    :   castParExpression castOperandExpression                                             #castExprAlt

    |   postfixExpression                                                                   #postfixExprAlt


    // ~(BNOT)/!(LNOT) (level 1)

    |   (BITNOT | NOT) nls expression                                                       #unaryNotExprAlt


...


castOperandExpression

options { baseContext = expression; }

    :   castParExpression castOperandExpression                                             #castExprAlt

    |   postfixExpression                                                                   #postfixExprAlt

    // ~(BNOT)/!(LNOT) (level 1)

    |   (BITNOT | NOT) nls castOperandExpression                                            #unaryNotExprAlt

    // ++(prefix)/--(prefix)/+(unary)/-(unary) (level 3)

    |   op=(INC | DEC | ADD | SUB) castOperandExpression                                    #unaryAddExprAlt

    ;




________________________________
From: Paul King <pa...@apache.org>
Sent: Friday, May 10, 2019 10:39 AM
To: dev@groovy.apache.org; users@groovy.apache.org; announce@apache.org
Subject: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Dear community,

The Apache Groovy team is pleased to announce version 3.0.0-beta-1 of
Apache Groovy.
Apache Groovy is a multi-faceted programming language for the JVM.
Further details can be found at the https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=W0ZGK-2EFf7uE4LDi98Bn546HfTXBfLiYxKiGbT3bTQ&e=  website.

This is a pre-release of a new version of Groovy.
We greatly appreciate any feedback you can give us when using this version.

This release includes 109 bug fixes/improvements as outlined in the changelog:
https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_secure_ReleaseNote.jspa-3FprojectId-3D12318123-26version-3D12344761&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=Nj5OWjfloFtOZho-Z2RfVydNwkoCRkr2mnBF1HIqOKY&e=

Sources, convenience binaries, downloadable documentation and an SDK
bundle can be found at: https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org_download.html&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=55DQLrlQlTxINAXqJ25GcDnEoqpNlyQr2xyVUzXttBs&e=
We recommend you verify your installation using the information on that page.

Jars are also available within the major binary repositories.

We welcome your help and feedback and in particular want
to thank everyone who contributed to this release.

For more information on how to report problems, and to get involved,
visit the project website at https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org_&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=8Zb4qLEpuuI0TZw61zEvC35BWU281nb5I-Pym0zjjq8&e=

Best regards,

The Apache Groovy team.

Re: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by Remko Popma <re...@gmail.com>.
Blogged:  https://blogs.apache.org/groovy/entry/groovy-3-0-0-beta

On Sun, May 12, 2019 at 7:53 AM Paul King <pa...@asert.com.au> wrote:

> Eric, when trying to build?
>
> On Sun, May 12, 2019 at 5:54 AM Milles, Eric (TR Tech, Content & Ops) <
> eric.milles@thomsonreuters.com> wrote:
>
>> I am getting the following error when processing the latest parrot parser
>> grammar.  Is anyone else seeing this?
>>
>>
>>         [java] error(123): GroovyParser.g4:788:93: rule alt label
>> 'castExprAlt' redefined in rule 'expression', originally in rule
>> 'castOperandExpression'
>>         [java] error(123): GroovyParser.g4:789:93: rule alt label
>> 'postfixExprAlt' redefined in rule 'expression', originally in rule
>> 'castOperandExpression'
>>         [java] error(123): GroovyParser.g4:792:93: rule alt label
>> 'unaryNotExprAlt' redefined in rule 'expression', originally in rule
>> 'castOperandExpression'
>>         [java] error(123): GroovyParser.g4:798:93: rule alt label
>> 'unaryAddExprAlt' redefined in rule 'expression', originally in rule
>> 'castOperandExpression'
>>
>>
>> The rule alt labels are indeed repeated:
>>
>>
>> expression
>>
>>     // qualified names, array expressions, method invocation, post
>> inc/dec, type casting (level 1)
>>
>>     // The cast expression must be put before pathExpression to resovle
>> the ambiguities between type casting and call on parentheses expression,
>> e.g. (int)(1 / 2)
>>
>>     :   castParExpression castOperandExpression
>>                    #castExprAlt
>>
>>     |   postfixExpression
>>                    #postfixExprAlt
>>
>>
>>     // ~(BNOT)/!(LNOT) (level 1)
>>
>>     |   (BITNOT | NOT) nls expression
>>                    #unaryNotExprAlt
>>
>>
>> ...
>>
>>
>> castOperandExpression
>>
>> options { baseContext = expression; }
>>
>>     :   castParExpression castOperandExpression
>>                    #castExprAlt
>>
>>     |   postfixExpression
>>                    #postfixExprAlt
>>
>>     // ~(BNOT)/!(LNOT) (level 1)
>>
>>     |   (BITNOT | NOT) nls castOperandExpression
>>                   #unaryNotExprAlt
>>
>>     // ++(prefix)/--(prefix)/+(unary)/-(unary) (level 3)
>>
>>     |   op=(INC | DEC | ADD | SUB) castOperandExpression
>>                   #unaryAddExprAlt
>>
>>     ;
>>
>>
>>
>>
>>
>> ------------------------------
>> *From:* Paul King <pa...@apache.org>
>> *Sent:* Friday, May 10, 2019 10:39 AM
>> *To:* dev@groovy.apache.org; users@groovy.apache.org; announce@apache.org
>> *Subject:* [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released
>>
>> Dear community,
>>
>> The Apache Groovy team is pleased to announce version 3.0.0-beta-1 of
>> Apache Groovy.
>> Apache Groovy is a multi-faceted programming language for the JVM.
>> Further details can be found at the
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=W0ZGK-2EFf7uE4LDi98Bn546HfTXBfLiYxKiGbT3bTQ&e=
>> website.
>>
>> This is a pre-release of a new version of Groovy.
>> We greatly appreciate any feedback you can give us when using this
>> version.
>>
>> This release includes 109 bug fixes/improvements as outlined in the
>> changelog:
>>
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_secure_ReleaseNote.jspa-3FprojectId-3D12318123-26version-3D12344761&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=Nj5OWjfloFtOZho-Z2RfVydNwkoCRkr2mnBF1HIqOKY&e=
>>
>> Sources, convenience binaries, downloadable documentation and an SDK
>> bundle can be found at:
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org_download.html&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=55DQLrlQlTxINAXqJ25GcDnEoqpNlyQr2xyVUzXttBs&e=
>> We recommend you verify your installation using the information on that
>> page.
>>
>> Jars are also available within the major binary repositories.
>>
>> We welcome your help and feedback and in particular want
>> to thank everyone who contributed to this release.
>>
>> For more information on how to report problems, and to get involved,
>> visit the project website at
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org_&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=8Zb4qLEpuuI0TZw61zEvC35BWU281nb5I-Pym0zjjq8&e=
>>
>> Best regards,
>>
>> The Apache Groovy team.
>>
>

Re: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by Paul King <pa...@asert.com.au>.
Eric, when trying to build?

On Sun, May 12, 2019 at 5:54 AM Milles, Eric (TR Tech, Content & Ops) <
eric.milles@thomsonreuters.com> wrote:

> I am getting the following error when processing the latest parrot parser
> grammar.  Is anyone else seeing this?
>
>
>         [java] error(123): GroovyParser.g4:788:93: rule alt label
> 'castExprAlt' redefined in rule 'expression', originally in rule
> 'castOperandExpression'
>         [java] error(123): GroovyParser.g4:789:93: rule alt label
> 'postfixExprAlt' redefined in rule 'expression', originally in rule
> 'castOperandExpression'
>         [java] error(123): GroovyParser.g4:792:93: rule alt label
> 'unaryNotExprAlt' redefined in rule 'expression', originally in rule
> 'castOperandExpression'
>         [java] error(123): GroovyParser.g4:798:93: rule alt label
> 'unaryAddExprAlt' redefined in rule 'expression', originally in rule
> 'castOperandExpression'
>
>
> The rule alt labels are indeed repeated:
>
>
> expression
>
>     // qualified names, array expressions, method invocation, post
> inc/dec, type casting (level 1)
>
>     // The cast expression must be put before pathExpression to resovle
> the ambiguities between type casting and call on parentheses expression,
> e.g. (int)(1 / 2)
>
>     :   castParExpression castOperandExpression
>                  #castExprAlt
>
>     |   postfixExpression
>                  #postfixExprAlt
>
>
>     // ~(BNOT)/!(LNOT) (level 1)
>
>     |   (BITNOT | NOT) nls expression
>                  #unaryNotExprAlt
>
>
> ...
>
>
> castOperandExpression
>
> options { baseContext = expression; }
>
>     :   castParExpression castOperandExpression
>                  #castExprAlt
>
>     |   postfixExpression
>                  #postfixExprAlt
>
>     // ~(BNOT)/!(LNOT) (level 1)
>
>     |   (BITNOT | NOT) nls castOperandExpression
>                   #unaryNotExprAlt
>
>     // ++(prefix)/--(prefix)/+(unary)/-(unary) (level 3)
>
>     |   op=(INC | DEC | ADD | SUB) castOperandExpression
>                   #unaryAddExprAlt
>
>     ;
>
>
>
>
>
> ------------------------------
> *From:* Paul King <pa...@apache.org>
> *Sent:* Friday, May 10, 2019 10:39 AM
> *To:* dev@groovy.apache.org; users@groovy.apache.org; announce@apache.org
> *Subject:* [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released
>
> Dear community,
>
> The Apache Groovy team is pleased to announce version 3.0.0-beta-1 of
> Apache Groovy.
> Apache Groovy is a multi-faceted programming language for the JVM.
> Further details can be found at the
> https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=W0ZGK-2EFf7uE4LDi98Bn546HfTXBfLiYxKiGbT3bTQ&e=
> website.
>
> This is a pre-release of a new version of Groovy.
> We greatly appreciate any feedback you can give us when using this version.
>
> This release includes 109 bug fixes/improvements as outlined in the
> changelog:
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_secure_ReleaseNote.jspa-3FprojectId-3D12318123-26version-3D12344761&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=Nj5OWjfloFtOZho-Z2RfVydNwkoCRkr2mnBF1HIqOKY&e=
>
> Sources, convenience binaries, downloadable documentation and an SDK
> bundle can be found at:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org_download.html&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=55DQLrlQlTxINAXqJ25GcDnEoqpNlyQr2xyVUzXttBs&e=
> We recommend you verify your installation using the information on that
> page.
>
> Jars are also available within the major binary repositories.
>
> We welcome your help and feedback and in particular want
> to thank everyone who contributed to this release.
>
> For more information on how to report problems, and to get involved,
> visit the project website at
> https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org_&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=8Zb4qLEpuuI0TZw61zEvC35BWU281nb5I-Pym0zjjq8&e=
>
> Best regards,
>
> The Apache Groovy team.
>

Re: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Posted by "Milles, Eric (TR Tech, Content & Ops)" <er...@thomsonreuters.com>.
I am getting the following error when processing the latest parrot parser grammar.  Is anyone else seeing this?


        [java] error(123): GroovyParser.g4:788:93: rule alt label 'castExprAlt' redefined in rule 'expression', originally in rule 'castOperandExpression'
        [java] error(123): GroovyParser.g4:789:93: rule alt label 'postfixExprAlt' redefined in rule 'expression', originally in rule 'castOperandExpression'
        [java] error(123): GroovyParser.g4:792:93: rule alt label 'unaryNotExprAlt' redefined in rule 'expression', originally in rule 'castOperandExpression'
        [java] error(123): GroovyParser.g4:798:93: rule alt label 'unaryAddExprAlt' redefined in rule 'expression', originally in rule 'castOperandExpression'



The rule alt labels are indeed repeated:


expression

    // qualified names, array expressions, method invocation, post inc/dec, type casting (level 1)

    // The cast expression must be put before pathExpression to resovle the ambiguities between type casting and call on parentheses expression, e.g. (int)(1 / 2)

    :   castParExpression castOperandExpression                                             #castExprAlt

    |   postfixExpression                                                                   #postfixExprAlt


    // ~(BNOT)/!(LNOT) (level 1)

    |   (BITNOT | NOT) nls expression                                                       #unaryNotExprAlt


...


castOperandExpression

options { baseContext = expression; }

    :   castParExpression castOperandExpression                                             #castExprAlt

    |   postfixExpression                                                                   #postfixExprAlt

    // ~(BNOT)/!(LNOT) (level 1)

    |   (BITNOT | NOT) nls castOperandExpression                                            #unaryNotExprAlt

    // ++(prefix)/--(prefix)/+(unary)/-(unary) (level 3)

    |   op=(INC | DEC | ADD | SUB) castOperandExpression                                    #unaryAddExprAlt

    ;




________________________________
From: Paul King <pa...@apache.org>
Sent: Friday, May 10, 2019 10:39 AM
To: dev@groovy.apache.org; users@groovy.apache.org; announce@apache.org
Subject: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

Dear community,

The Apache Groovy team is pleased to announce version 3.0.0-beta-1 of
Apache Groovy.
Apache Groovy is a multi-faceted programming language for the JVM.
Further details can be found at the https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=W0ZGK-2EFf7uE4LDi98Bn546HfTXBfLiYxKiGbT3bTQ&e=  website.

This is a pre-release of a new version of Groovy.
We greatly appreciate any feedback you can give us when using this version.

This release includes 109 bug fixes/improvements as outlined in the changelog:
https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_secure_ReleaseNote.jspa-3FprojectId-3D12318123-26version-3D12344761&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=Nj5OWjfloFtOZho-Z2RfVydNwkoCRkr2mnBF1HIqOKY&e=

Sources, convenience binaries, downloadable documentation and an SDK
bundle can be found at: https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org_download.html&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=55DQLrlQlTxINAXqJ25GcDnEoqpNlyQr2xyVUzXttBs&e=
We recommend you verify your installation using the information on that page.

Jars are also available within the major binary repositories.

We welcome your help and feedback and in particular want
to thank everyone who contributed to this release.

For more information on how to report problems, and to get involved,
visit the project website at https://urldefense.proofpoint.com/v2/url?u=https-3A__groovy.apache.org_&d=DwIBaQ&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=tPJuIuL_GkTEazjQW7vvl7mNWVGXn3yJD5LGBHYYHww&m=iNh9faJ-wCXufljVbqv4UsFIpJA71TiipqKBJwCXH2Q&s=8Zb4qLEpuuI0TZw61zEvC35BWU281nb5I-Pym0zjjq8&e=

Best regards,

The Apache Groovy team.