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

closure class my contain invalid chars

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0-beta-4
    • Compiler
    • None

    Description

      class X {
          def 'foo!bar'() {
              return {}
          }
      }
      println new X().'foo!bar'().getClass()
      

      This code fails when creating the closure class, because the generated class name will contain a '!'

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: