[
http://jira.codehaus.org/browse/GANT-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191722#action_191722 ]
Russel Winder commented on GANT-84:
-----------------------------------
I suspect the example may not exibit the behaviour being complained about. Executing the code as a Gant script:
{quote}
|> gant
Error evaluating Gantfile: No signature of method: java.lang.String.positive() is applicable for argument types: () values: []
|>
{quote}
Executing it as a Groovy script:
{quote}
|> groovy build.gant
Caught: org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack: No signature of method: java.lang.String.positive() is applicable for argument types: () values: []
|>
{quote}
So no line numbers there either. I think Gant's behaviour here is predicated by Groovy's behaviour, so I am tempted to mark this as "Not A Bug". However, it maybe that there is a better example that highlights the problem?
Interestingly, the script can be compiled:
{quote}
|> groovyc build.gant
|>
{quote}
I wonder if there is a Groovy bug here?
> groovy.lang.MissingMethodException provides no information on location
> ----------------------------------------------------------------------
>
> Key: GANT-84
> URL:
http://jira.codehaus.org/browse/GANT-84> Project: Gant
> Issue Type: Improvement
> Affects Versions: 1.6.1
> Reporter: Bob Swift
> Fix For: 1.8.0
>
>
> I often get messages like this which requires some effort to figure out what caused the problem. If I monitor for the exception and get a stack trace, it still only narrows the search a bit.
> groovy.lang.MissingMethodException: No signature of method: java.lang.String.positive() is applicable for argument types: () values: {}
> Regular groovy seems to do better with given a location.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
<hr/>
<p>
To unsubscribe from this list please visit:
</p>
<p>
<a href="
http://xircles.codehaus.org/manage_email">
http://xircles.codehaus.org/manage_email</a>