Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.5
-
None
-
None
-
Patch
Description
The problem appears in Groovy 2.0.5 and in revision 9c9cd23.. I
attached a one-line patch (addMixin.diff) that fixes it.
In method "ClassNode.addMixin", the loop over "mixins" should call
"break" immediately after "skip" is set to "true". All the iterations
after "skip" is set to "true" do not perform any useful work, at best
they just set "skip" again to "true".
"ClassNode.addInterface" has a similar problem. I attached a second
patch for it (addInterface.diff).