Daniel,
Thanks for the explanation,

Look forward to beta-2!!

Jon

-----Original Message-----
From: Daniel Sun <realblue...@hotmail.com>
Sent: 26 May 2019 07:51
To: d...@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

Reply via email to