groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Schumacher <>
Subject Re: Type safety on sum()/getAt()
Date Fri, 09 Oct 2015 16:04:09 GMT
Hi Peter,

no idea if there are any special issues with updating sum() and getAt(), 
but in general there is room for improvement of parameterised types in 
DefaultGroovyMethods etc. E.g. this pull request: adds parameterised 
types to a lot of DefaultGroovyMethods and IOGroovyMethods but it was 
never merged due to lack of tests.


Am 09.10.2015 um 09:54 schrieb Peter Ledbrook:
> Hi,
> I've noticed that @TypeChecked doesn't work so well with typed 
> collections and the sum() & getAt() methods (perhaps others as well). 
> I had a quick look at sum() in DefaultGroovyMethods and noticed that 
> it doesn't use parameterised types, unlike inject() for example.
> Would there be any issues with updating sum() and getAt() to work with 
> parameterised types? The current situation makes using @TypeChecked 
> harder than it needs to be.
> Thanks,
> Peter
> --
> Peter Ledbrook
> t: @pledbrook
> w:

View raw message