KEMBAR78
Bug with recursive partials · Issue #53 · spullara/mustache.java · GitHub
Skip to content

Bug with recursive partials #53

@nicoulaj

Description

@nicoulaj

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)
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions