Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-10417

MethodNode toString() could add quotes when name contains spaces (or other non-identifier characters)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-rc-2
    • None
    • None

    Description

      Consider the following:

      class C {
        def 'should do something we need'() {
        }
      }
      

      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.

      Attachments

        Activity

          People

            paulk Paul King
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h