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

RangeExpression providing wrong ClassNode

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.6
    • Fix Version/s: 1.5.7, 1.6-beta-2
    • Component/s: parser
    • Labels:
      None

      Description

      When simple range is parsed (I attached the whole snippet to be accurate, but problem is not related to list):

      (5..8).a
      [1,2].a
      

      The name of the ClassNode is "groovy.lang.Range", but its clazz is java.lang.Object and isInterface() method returns false (which I think is incorrect).

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              phejl Petr Hejl

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment