Andrea,

Oracle Java 8 javac fails to compile RangeCombiner.addRange because it 
has started noticing that the two instances of <?> in the parameter list 
might not be the same type:
https://github.com/geotools/geotools/blob/master/modules/library/main/src/main/java/org/geotools/filter/visitor/RangeCombiner.java

Eclipse ecj is quite happy with this method, but Oracle javac is not.

There is probably a clean solution that involves making the whole class 
generic, but in my view that is an unnecessary API change and massive 
overkill to fix a tiny internal implementation problem that gets erased 
at compile time anyway. My straightforward fix is to remove generics 
from MultiRange<?>:
https://github.com/bencaradocdavies/geotools/commit/1b13eba56fc26aa4ab61b317ee3aac45d3cf25c4

This is not a pull request, it is a push announcement. I just thought 
this change merits an explanation. I am happy to be corrected if you 
think there is a better solution.

Kind regards,

-- 
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to