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

wasted work in the "ClassNode" constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.5
    • 2.0.6, 2.1.0-beta-1
    • None
    • None
    • Patch

    Description

      The problem appears in version 2.0.5 and in revision 4cf5263.. This
      problem is similar to the previously fixed GROOVY-5803, GROOVY-5823,
      GROOVY-5825, and GROOVY-5827. I attached a one-line patch that fixes
      it. I will also post (in the "Comments" section) the URL for the
      github pull request.

      In the "ClassNode" constructor (the constructor with 5 parameters),
      the loop over "interfaces" should break immediately after
      "usesGenerics" is set to "true". All the iterations after
      "usesGenerics" is set to "true" do not perform any useful work, at
      best they just set "usesGenerics" again to "true".

      Attachments

        1. patch.diff
          0.6 kB

        Activity

          People

            blackdrag Jochen Theodorou
            adriannistor Adrian Nistor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: