ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52829] implement Iterable interface in FileSet and others
Date Mon, 26 Mar 2012 20:26:43 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52829

--- Comment #6 from Jesse Glick <jglick@netbeans.org> 2012-03-26 20:26:43 UTC ---
Ah, I did not even notice that FileProvider is not assignable to Resource.

Even ignoring FileProvider for a moment, my fear about FileSet implements
Iterable<FileResource> was that the generics could become more trouble than
they are worth. The only project I know of which made a real attempt to use
generics like this (where you have two parallel type hierarchies linked in a
"ladder" by type parameters) is Hudson(/Jenkins):

  class Job<JobT extends Job<JobT,RunT>,RunT extends Run<JobT,RunT>>
  class Run<JobT extends Job<JobT,RunT>,RunT extends Run<JobT,RunT>>
  class AbstractProject<P extends AbstractProject<P,R>,R extends
AbstractBuild<P,R>> extends Job<P,R>
  class AbstractBuild<P extends AbstractProject<P,R>,R extends
AbstractBuild<P,R>> extends Run<P,R>
  ...

and in practice the code base (1) is full of unchecked/rawtype warnings no one
has ever figured out how to resolve, (2) sometimes fails to compile using new
versions of javac and/or ecj.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message