[ 
http://jira.codehaus.org/browse/GEOT-2661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jody Garnett reopened GEOT-2661:
--------------------------------


>From email:
{panel}
Hey Jody,
I should have asked this before the issue was closed.

I see the fixed PrjFileReader is here:
/modules/library/main/src/main/java/org/geotools/data/PrjFileReader.java

Though the PrjFileReader used by ShapefileDataStore is here:
/modules/plugin/shapefile/src/main/java/org/geotools/data/shapefile/prj/PrjFileReader.java

So the fix will not work for shapefiles?

Should ShapefileDataStore be using the fixed PrjFileReader instead?
Or should the fix be applied to the PrjFileReader class in the shapefile plugin.

Thanks
-Matt
{panel}

> 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: Jody Garnett
>             Fix For: 2.6-M2
>
>
> 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

Reply via email to