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 <dev@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.kerri...@napier.ac.uk<mailto:j.kerri...@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.kerri...@napier.ac.uk<mailto:j.kerri...@napier.ac.uk> -----Original Message----- From: Paul King <pa...@apache.org<mailto:pa...@apache.org>> Sent: 10 May 2019 16:40 To: dev@groovy.apache.org<mailto:dev@groovy.apache.org>; us...@groovy.apache.org<mailto:us...@groovy.apache.org>; annou...@apache.org<mailto:annou...@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