Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Contact:

full nameJody Garnett

Tracker:

httphttps://jira.codehaus.org/browse/GEOT-XXXX4191

Tagline:

Excerpt

try-with-resource

Section
Column
width70%
Table of Contents
Column

Children:

Children Display

Description

Describe your proposal here, if needed you can provide background information, reference OGC documents, include class diagrams to show what you are simplifying, etc..

Try and provide context if you have a deadline, customer, and any additional information (if you have a design document you can attach it to the page as a PDF).

Status

This proposal is under construction.

Voting has not started yetReading the Java 7 planned try-with-resource syntax I am convinced that supporting the Closable interface is necessary change for GeoTools 9.x.

 

Reading:

 


Status

This proposal is shaping up, ask question on the email list or vote below:

Tasks

This section is used to make sure your proposal is complete (did you remember documentation?) and has enough paid or volunteer time lined up to be a success


 

no progress

(tick)

done

(error)

impeded

(warning)

lack mandate/funds/time

(question)

volunteer needed

  1. API changed based on BEFORE / AFTER
  2. Update default implementation
  3. Update wiki (both module matrix and upgrade to to 2.5 pages) |
  4. Remove deprecated code from GeoTools project
  5. Update the user guide
  6. Update or provided sample code in demo
  7. review user documentation
  1. FeatureIterator API change to throw IOException
    • Update Interface and Implementations
    • Fix library code including any broken tests
  2. Warn / Patch downstream applications
    1. Patch for GeoServer
    2. Patch for uDig
  3. Coordinate API Change (above patches should be tested / applied together)
  4. Implement Closable
    • FeatureIterator
    • FeatureReader
    • FeatureWriter
  5. Update the user guide

API Changes

FeatureIterator

...

Code Block
import java.lang.Closable;
public interface FeatureWriter<T extends FeatureType, F extends Feature> extends Closable {
    T getFeatureType();
    F next() throws IOException;
    void remove() throws IOException;
    void write() throws IOException;
    boolean hasNext() throws IOException;
    void close() throws IOException;
}

Documentation Changes

list the pages effected by this proposal