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

GString not coerced for static methods

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment