branaway / Japid

A Java-based statically-typed fast template engine that can be used in any Java code. It has special adapter for use with the Play! Framework.
113 stars 18 forks source link

primitive types are not compatible with open "for" loop #9

Closed branaway closed 13 years ago

branaway commented 13 years ago

The reason is open for loops are transformed to calling the each tag which requires a generic type, which cannot be a primitive.

Solution: change the element type to the corresponding object type at compile time.

branaway commented 13 years ago

done