On 21/03/13 22:09, Luke Daley wrote:
Hi,

DomainObjectCollection<T> {
        <S extends T> DomainObjectCollection<S> withType(Class<S>) {} 
}

This generic signature is not right. It doesn't allow creating a filtered set 
by an interface. My use case was…

tasks.withType(JavaForkOptions) {

}

But this doesn't work.

Do we want to fix this? If so, how the hell do we do so in a backwards 
compatible way?

I had the same problem while working on the build dashboard plugin when I needed to get all tasks implementing Reporting.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to