Can you prep a pull request to make the change? I am interested to see if
fixing this will cause any regressions.
On Tue, Mar 29, 2016 at 10:12 AM sikeoka <steve.ike...@gdit.com> wrote:
> org.geotools.coverage.ColorModelFactory takes four parameters (categories,
> type, visibleBand, numBands) but its equals() and hashCode() methods only
> checks three of the parameters (categories, visibleBand, numBands). If
> ColorModelFactory.getColorModel is called multiple times with identical
> parameters except for the type, then an incorrect ColorModel can be
> returned. A method that could result in errors due to this is
> org.geotools.coverage.grid.GridCoverageFactory.create(CharSequence,
> WritableRaster, Envelope, GridSampleDimension[]).
>
> The ColorModelFactory equals() and hashCode() methods should be updated to
> check the type.
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Improper-Caching-in-ColorModelFactory-tp5258720.html
> Sent from the geotools-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
--
--
Jody Garnett
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel