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

RangeExpression providing wrong ClassNode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.5.7, 1.6-beta-2
    • parser
    • 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

              blackdrag Jochen Theodorou
              phejl Petr Hejl
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: