You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2019/05/20 07:32:10 UTC

[jira] [Closed] (GROOVY-9010) MissingMethodException during ASTTest annotation assert execution

     [ https://issues.apache.org/jira/browse/GROOVY-9010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King closed GROOVY-9010.
-----------------------------

> MissingMethodException during ASTTest annotation assert execution
> -----------------------------------------------------------------
>
>                 Key: GROOVY-9010
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9010
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler, groovy-jdk
>    Affects Versions: 2.5.2
>         Environment: windows10
>            Reporter: hwasin
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 3.0.0-beta-1, 2.5.7, 2.4.17
>
>         Attachments: test_fail.groovy, test_success.groovy
>
>
> When i try to run following groovy script: 
> {noformat}
> groovy test_fail.groovy
>  {noformat}
> i get following syntax error:
> {noformat}
> Caught: groovy.lang.MissingMethodException: No signature of method: Script1.ssert() is applicable for argument types: (Boolean) values: [true]
> Possible solutions: every(), grep(), split(groovy.lang.Closure), sleep(long), every(groovy.lang.Closure), use([Ljava.lang.Object;)
> groovy.lang.MissingMethodException: No signature of method: Script1.ssert() is applicable for argument types: (Boolean) values: [true]
> Possible solutions: every(), grep(), split(groovy.lang.Closure), sleep(long), every(groovy.lang.Closure), use([Ljava.lang.Object;)
>         at Script1.run(Script1.groovy:1)
>         at Main.main(test_fail.groovy:6)
> {noformat}
> adding an empty space between "{" and "assert" keyword helps (see test_success.groovy)
> Looks like groovy "assert" token is fetched wrongly and "ssert" part is read only



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)