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

static star ImportNode has invalid constructor?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.5
    • 1.7.6, 1.8-beta-3
    • Compiler
    • None

    Description

      I came across something curious in the constructor for static star ImportNodes. This constructor public ImportNode(ClassNode type) has the following doc comment:

          /**
           * Represent a static import of a Class, i.e. import static package.Classname.*
           *
           * @param type the referenced class
           */
      

      Yet, inside the constructor, this.isStatic = false;. This seems like a bug to me since the generated ImportNode is obviously supposed to be static. Is there something I'm missing here?

      Attachments

        Activity

          People

            paulk Paul King
            werdna Andrew Eisenberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: