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

Callsite helper class generation cannot handle some methods

    XMLWordPrintableJSON

Details

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

    Description

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

      This code fails for example in the call site generation code at runtime, because of 2 problems: (a) the helper class will have a name containing "foo!bar", which is not valid (b) the invoke instruction will contain ! for the target method, which also seems not to be valid.

      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: