AngelDoReMi / closure-templates

Automatically exported from code.google.com/p/closure-templates
Apache License 2.0
0 stars 0 forks source link

SoyParseInfoGenerator.jar generates an invalid Java file if the template has no arguments #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Generating the SoyParseInfo for:

{namespace foo.bar.templates}

/**
 * HelloWorld
 */
{template .helloWorld}
 Hello world!
{/template}

Produces:

private static final SoyFileInfo __SOY_FILE_INFO__ = new SoyFileInfo(
     "foo.soy",
     "foo.bar.templates",
     ImmutableSortedSet.of(
),
     ImmutableList.<SoyTemplateInfo>of(
         HELLO_WORLD));

But the third parameter of SoyFileInfo needs to be a string.

Original issue reported on code.google.com by bolinf...@gmail.com on 7 Apr 2010 at 7:28

GoogleCodeExporter commented 8 years ago

Original comment by kai.hu...@gmail.com on 7 Apr 2010 at 11:22

GoogleCodeExporter commented 8 years ago
Fixed in release 20100422.

Original comment by kai.hu...@gmail.com on 23 Apr 2010 at 9:18