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 2021/12/21 12:07:00 UTC

[jira] [Commented] (GROOVY-10417) MethodNode toString() could add quotes when name contains spaces (or other non-identifier characters)

    [ https://issues.apache.org/jira/browse/GROOVY-10417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17463195#comment-17463195 ] 

Paul King commented on GROOVY-10417:
------------------------------------

Is something like this what you had in mind:
https://github.com/apache/groovy/pull/1666

> MethodNode toString() could add quotes when name contains spaces (or other non-identifier characters)
> -----------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-10417
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10417
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Eric Milles
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Consider the following:
> {code:groovy}
> class C {
>   def 'should do something we need'() {
>   }
> }
> {code}
> When this method is viewed in debugger, the toString() looks like "org.codehaus.groovy.ast.MethodNode@129e3742[java.lang.Object should do something we need() from C]".  Some delimeter (quotes or whatever) could be included around the name to help set it off from the rest of the string.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)