You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "hwasin (JIRA)" <ji...@apache.org> on 2019/02/26 13:51:00 UTC
[jira] [Created] (GROOVY-9010) MissingMethodException during
ASTTest annotation assert execution
hwasin created GROOVY-9010:
------------------------------
Summary: 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
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)