[ https://issues.apache.org/jira/browse/GROOVY-11118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17951642#comment-17951642 ]
Paul King commented on GROOVY-11118: ------------------------------------ A minor breaking change occurs for scripts with a static main method and no other statements outside methods. If affected, use the "run" method instead. > Initial JEP 521/445 compatibility > --------------------------------- > > Key: GROOVY-11118 > URL: https://issues.apache.org/jira/browse/GROOVY-11118 > Project: Groovy > Issue Type: Sub-task > Reporter: Paul King > Assignee: Paul King > Priority: Major > Labels: breaking > Fix For: 5.0.0-alpha-1 > > > [JEP 445: Unnamed Classes and Instance Main > Methods|https://openjdk.org/jeps/445] provides features that improve using > Java for scripting purposes. Groovy 5 offers compatibility to JEP 445 with > some minor differences. GROOVY-11166 outlines the specification for this > feature. > This issue covers initial support of this feature delivered as part of > 5.0.0-alpha-1 including: > * Support for the various "main" method forms offered by JEP 445 > * Support for an additional "run" method form offered by Groovy to combine > some of the features offered by JEP 445 while still creating a traditional > Groovy "script" class which extends from the {{Script}} class. -- This message was sent by Atlassian Jira (v8.20.10#820010)