candrews
2015-02-18 23:32:06 UTC
I reported 2 issues about improving type information in the Groovy GDK
methods:
http://jira.codehaus.org/browse/GROOVY-7281 IOGroovyMethods.withStream
should use the stream type as the ClosureParam, not simply InputStream
http://jira.codehaus.org/browse/GROOVY-7283 DefaultGroovyMethods methods
should include type information
The first, GROOVY-7281, seems really easy and not problematic. I've
submitted a pull request at https://github.com/groovy/groovy-core/pull/599 -
could someone please review it and perhaps merge it? This seems like it
should be in Groovy 2.4.x.
The second, GROOVY-7283, is the same idea but on a lot more methods (just
adding @ClosureParams and closure return type generics). I've also submitted
a PR https://github.com/groovy/groovy-core/pull/610 on that ticket that
improves type information in many places. I'm hoping that PR can be reviewed
- I'm happy to split it up or make any other changes. Assuming it's
backwards compatible, I think it should be in 2.4.x - but if there's concern
that it's not, perhaps parts of it could be in 2.4.x and parts in a future
version.
I think these kinds of improvements are great - they make the work already
done on @CompileStatic/@TypeChecked much more useful.
Thanks,
~Craig
--
View this message in context: http://groovy.329449.n5.nabble.com/Improving-type-information-in-the-GDK-methods-tp5722710.html
Sent from the groovy - dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
methods:
http://jira.codehaus.org/browse/GROOVY-7281 IOGroovyMethods.withStream
should use the stream type as the ClosureParam, not simply InputStream
http://jira.codehaus.org/browse/GROOVY-7283 DefaultGroovyMethods methods
should include type information
The first, GROOVY-7281, seems really easy and not problematic. I've
submitted a pull request at https://github.com/groovy/groovy-core/pull/599 -
could someone please review it and perhaps merge it? This seems like it
should be in Groovy 2.4.x.
The second, GROOVY-7283, is the same idea but on a lot more methods (just
adding @ClosureParams and closure return type generics). I've also submitted
a PR https://github.com/groovy/groovy-core/pull/610 on that ticket that
improves type information in many places. I'm hoping that PR can be reviewed
- I'm happy to split it up or make any other changes. Assuming it's
backwards compatible, I think it should be in 2.4.x - but if there's concern
that it's not, perhaps parts of it could be in 2.4.x and parts in a future
version.
I think these kinds of improvements are great - they make the work already
done on @CompileStatic/@TypeChecked much more useful.
Thanks,
~Craig
--
View this message in context: http://groovy.329449.n5.nabble.com/Improving-type-information-in-the-GDK-methods-tp5722710.html
Sent from the groovy - dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email