Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.0
    • Component/s: parser-antlr
    • Labels:
      None

      Description

      GStrings have problems with their various sub parts: the constant strings and the variables interpolated.
      With this example:

      def gs1 = "-$a-${b}-${->c}-"
      

      The first constant string represents "-$ instead of just the minus sign.
      The second and third constant are -$ instead of just the minus sign again.
      And the last constant is -", instead of just the minus sign, it's going one character too far.
      Now on to the variables.
      Variable a is okay.
      Varible b is actually

      {b}

      and I think it should be just b
      And the closure expression is jut right too.

        Issue Links

          Activity

          Guillaume Delcroix created issue -
          Guillaume Delcroix made changes -
          Field Original Value New Value
          Link This issue is duplicated by GROOVY-3437 [ GROOVY-3437 ]
          Guillaume Delcroix made changes -
          Component/s parser-antlr [ 11322 ]
          Jochen Theodorou made changes -
          Fix Version/s 4.0 [ 18928 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
          Mark Thomas made changes -
          Workflow jira [ 12734234 ] Default workflow, editable Closed status [ 12746022 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
          Mark Thomas made changes -
          Workflow jira [ 12971734 ] Default workflow, editable Closed status [ 12979543 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Guillaume Delcroix
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development