[ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

classic Classic list List threaded Threaded
19 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

paulk
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.
Reply | Threaded
Open this post in threaded view
|

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

Daniel.Sun
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
Apache Groovy committer & PMC member

Blog: http://blog.sunlan.me
Twitter: @daniel_sun
Reply | Threaded
Open this post in threaded view
|

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

Guillaume Laforge
Administrator
Nice to see the first beta of 3.0 out!

Guillaume


Le ven. 10 mai 2019 à 18:04, Daniel.Sun <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|

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

Milles, Eric (TR Tech, Content & Ops)
In reply to this post by paulk

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 <[hidden email]>
Sent: Friday, May 10, 2019 10:39 AM
To: [hidden email]; [hidden email]; [hidden email]
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.
Reply | Threaded
Open this post in threaded view
|

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

Milles, Eric (TR Tech, Content & Ops)

Missed the update to antlr4 4.7.3.



From: Milles, Eric (TR Tech, Content & Ops) <[hidden email]>
Sent: Saturday, May 11, 2019 2:53 PM
To: [hidden email]
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 <[hidden email]>
Sent: Friday, May 10, 2019 10:39 AM
To: [hidden email]; [hidden email]; [hidden email]
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.
Reply | Threaded
Open this post in threaded view
|

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

paulk_asert
In reply to this post by Milles, Eric (TR Tech, Content & Ops)
Eric, when trying to build?

On Sun, May 12, 2019 at 5:54 AM Milles, Eric (TR Tech, Content & Ops) <[hidden email]> 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 <[hidden email]>
Sent: Friday, May 10, 2019 10:39 AM
To: [hidden email]; [hidden email]; [hidden email]
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.
Reply | Threaded
Open this post in threaded view
|

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

Remko Popma

On Sun, May 12, 2019 at 7:53 AM Paul King <[hidden email]> wrote:
Eric, when trying to build?

On Sun, May 12, 2019 at 5:54 AM Milles, Eric (TR Tech, Content & Ops) <[hidden email]> 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 <[hidden email]>
Sent: Friday, May 10, 2019 10:39 AM
To: [hidden email]; [hidden email]; [hidden email]
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.
Reply | Threaded
Open this post in threaded view
|

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

Kerridge, Jon
In reply to this post by paulk
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
[hidden email]



-----Original Message-----
From: Paul King <[hidden email]>
Sent: 10 May 2019 16:40
To: [hidden email]; [hidden email]; [hidden email]
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

Reply | Threaded
Open this post in threaded view
|

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

paulk_asert
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 <[hidden email]> 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
[hidden email]



-----Original Message-----
From: Paul King <[hidden email]>
Sent: 10 May 2019 16:40
To: [hidden email]; [hidden email]; [hidden email]
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

Reply | Threaded
Open this post in threaded view
|

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

Daniel Sun
In reply to this post by Kerridge, Jon
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
12