Community
Participate
Working Groups
There is an issue when launching Java generation template with Helios SR1. The error does not occur in 3.7 milestones. See "depends on" M2T issue for details on the error.
oups, wrong dependency 181952 -> 328931
using a "for" loop instead of a recursive template fixes the problem: [template public writeBrackets(o : ASTNode, d : Integer)] [for (i : Integer | Sequence{1..d})]['[]'/][/for] [/template]
For some reason, the previous code outputs nothing when d = 1. So, I propose instead: [template public writeBrackets(o : ASTNode, d : Integer)] [if (d = 1)]['[]'/][/if] [if (d > 1)][for (i : Integer | Sequence{1..d})]['[]'/][/for][/if] [/template]
since We do not know when bug 328931 can be fixed and we have a simple solution, I commited your proposal, Nicolas. Both on 0.8 (rev 3615) and 0.9 branch (rev 3616).
Bug fixed.