United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6842687 New I/O: Update Asynchronous I/O API to jsr203/nio2-b101
6842687 : New I/O: Update Asynchronous I/O API to jsr203/nio2-b101

Details
Type:
Enhancement
Submit Date:
2009-05-19
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2009-08-28
Component:
core-libs
OS:
generic
Sub-Component:
java.nio
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7

Related Reports

Sub Tasks

Description
This bug tracks updates to the JSR-203 spec that have accumulated since the integration into jdk7 b50.

1. The asynchronous I/O methods that take a CompletionHandler as parameter should return void (not Future<V>). We don't have use-cases where the two forms are mixed and it is confusing to developers to support both in the same methods.

2. A side effect of #1 is that the CompletionHandler cancelled method is no longer required.

3. AsynchronousFileChannel#close should not close the associated thread pool when the channel is closed.

4. AsynchronousDatagramChannel has send and methods that specify a timeout. These do not make sense and should be removed.

                                    

Comments
EVALUATION

Need to sync'up jdk7.
                                     
2009-07-21



Hardware and Software, Engineered to Work Together