PrjFileReader buffer is never cleaned up by NIOUtilities
--------------------------------------------------------
Key: GEOT-2661
URL: http://jira.codehaus.org/browse/GEOT-2661
Project: GeoTools
Issue Type: Bug
Components: data shapefile
Affects Versions: 2.5.2, 2.5.8, 2.6-M2
Environment: Windows, Java 1.6.0.14
Reporter: Matt Blanchette
Assignee: Andrea Aime
MappedByteBuffer in PrjFileReader is never cleaned up with NIOUtilities.clean()
in the close() method for local shapefiles on Windows file system
Test for !memoryMapped on line 135 prevents cleanup from occuring, since
memoryMapped is always true in PrjFileReader
Without removing the buffer, the prj file cannot be deleted on the Windows
system (until garbage collection occurs)
To reproduce, attempt to delete prj file after calling getSchema() or
getFeatureSource() in ShapefileDataStore
Version used is 2.5.2 but this is the same in trunk
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel