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

GString not coerced for static methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-6
    • 1.0-JSR-3
    • None
    • None

    Description

      GStrings are not automatically converted to Strings when invoking static methods:

      Integer.parseInt("1${2}3")

      This fails with "No signature of method java.lang.Integer.parseInt() is applicable for argument types".

      Attachments

        1. gstring-testcase-patch.txt
          0.7 kB
          Hein Meling
        2. metaclass-patch.txt
          0.7 kB
          Hein Meling

        Activity

          People

            guillaume Guillaume Sauthier
            gspencer Graham Spencer
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: