When trying to use a recursive partial (ie partial that has itself as a partial), for instance example.mustache:
{{#someCondition}}
{{>example}}
{{/someCondition}}
Mustache fails with a StackOverflowError in DefaultCode.clone():
java.lang.StackOverflowError
at com.github.mustachejava.codes.DefaultCode.clone(DefaultCode.java:26)
at com.github.mustachejava.codes.DefaultCode.clone(DefaultCode.java:30)
at com.github.mustachejava.codes.DefaultCode.clone(DefaultCode.java:30)
at com.github.mustachejava.codes.DefaultCode.clone(DefaultCode.java:30)
...
When trying to use a recursive partial (ie partial that has itself as a partial), for instance
example.mustache:Mustache fails with a StackOverflowError in
DefaultCode.clone():