Groovy
  1. Groovy
  2. GROOVY-4044

String subString(int,int) throws unexpected error.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 1.6.8
    • Component/s: Groovy Console
    • Labels:
      None
    • Environment:
      Windows XP SP3

      Description

      int a = 1
      int b = 3

      "hello".subString(a ,b)

      OR

      "hello".subString(a as int,b as int)

        Activity

        m b created issue -
        Hide
        m b added a comment -

        Exception :

        Exception thrown: No signature of method: java.lang.String.subString() is applicable for argument types: (java.lang.Integer, java.lang.Integer) values: [1, 3]

        groovy.lang.MissingMethodException: No signature of method: java.lang.String.subString() is applicable for argument types: (java.lang.Integer, java.lang.Integer) values: [1, 3]

        at ConsoleScript13.run(ConsoleScript13:4)

        Show
        m b added a comment - Exception : Exception thrown: No signature of method: java.lang.String.subString() is applicable for argument types: (java.lang.Integer, java.lang.Integer) values: [1, 3] groovy.lang.MissingMethodException: No signature of method: java.lang.String.subString() is applicable for argument types: (java.lang.Integer, java.lang.Integer) values: [1, 3] at ConsoleScript13.run(ConsoleScript13:4)
        Hide
        Guillaume Delcroix added a comment -

        The method is substring not subString. Notice the casing.

        Show
        Guillaume Delcroix added a comment - The method is substring not subString. Notice the casing.
        Guillaume Delcroix made changes -
        Field Original Value New Value
        Resolution Won't Fix [ 2 ]
        Assignee Guillaume Laforge [ guillaume ]
        Status Open [ 1 ] Closed [ 6 ]
        Jochen Theodorou made changes -
        Fix Version/s 1.6.x [ 15537 ]
        Fix Version/s 1.6.8 [ 16019 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12732997 ] Default workflow, editable Closed status [ 12744818 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12970688 ] Default workflow, editable Closed status [ 12978443 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        6m 15s 1 Guillaume Delcroix 09/Feb/10 12:46

          People

          • Assignee:
            Guillaume Delcroix
            Reporter:
            m b
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development