ajayk0719 / jai-tools

Automatically exported from code.google.com/p/jai-tools
0 stars 0 forks source link

Class cast exception when caching USHORT image tiles #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Robert Below...

I've just found a small bug in the RC2, in DiskCachedTile.writeData(). In the 
case for 
DataBuffer.TYPE_USHORT the Databuffer is cast to DataBufferShort instead of 
DataBufferUShort 
which causes a ClassCastException.

---

This also points to a lack of unit test coverage !

Original issue reported on code.google.com by michael.bedward@gmail.com on 16 Nov 2009 at 11:00

GoogleCodeExporter commented 9 years ago
Fixed in trunk r1051. Also added unit tests for DiskCachedTile.

Original comment by michael.bedward@gmail.com on 17 Nov 2009 at 1:17