[stringtemplate-interest] inconsistency with length function
Oliver Flege
o.flege at market-maker.de
Mon Jan 29 01:25:24 PST 2007
Hi,
Terence Parr wrote:
>> I think that the length method in ASTExpr.java should be changed as
>> follows:
>> From:
>>
>> } else if (attribute instanceof List) {
>> i = ((List)attribute).size();
>> }
>> To:
>>
>> } else if (attribute instanceof Collection) {
>> i = ((List)attribute).size();
>> }
>
> Howdy! OK, yep, good fix.
even better would be
} else if (attribute instanceof Collection) {
i = ((Collection)attribute).size();
}
:)
Cheers,
Oliver
More information about the stringtemplate-interest
mailing list