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

possible bug in ClassNode#isScript

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-JSR-6
    • ast builder
    • None

    Description

      the current implementation of ClassNode#isScript is

      public boolean isScript()

      { return script | isDerivedFrom(Type.SCRIPT_TYPE); }

      but the base type for a script is changeable by a property, so this test is nonesense in this form.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: