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

GString not replacing ${value} correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • 1.0-beta-4
    • None
    • None

    Description

      groovy> value = 35
      groovy> println "'${value}'"

      will print '35'

      But

      groovy> value = 35
      groovy> println '"${value}"'

      will print ""${value}"" (instead of "35")

      Attachments

        Activity

          People

            Unassigned Unassigned
            guillaume Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: