hg: nio/nio/jdk: 8 new changesets

alan.bateman at sun.com alan.bateman at sun.com
Tue Oct 14 08:58:33 PDT 2008


Changeset: 214ebdcf7252
Author:    sherman
Date:      2008-10-13 14:45 -0700
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/214ebdcf7252

5025260: Register methods should throw ClosedChannelException instead of NPE
Summary: update the spec and implementation to throw ClosedSelectorException
Reviewed-by: alanb

! src/share/classes/java/nio/channels/SelectableChannel.java
! src/share/classes/java/nio/channels/spi/AbstractSelectableChannel.java
! src/share/classes/sun/nio/ch/AbstractPollSelectorImpl.java
! src/solaris/classes/sun/nio/ch/DevPollSelectorImpl.java
! src/solaris/classes/sun/nio/ch/EPollSelectorImpl.java
! src/windows/classes/sun/nio/ch/WindowsSelectorImpl.java
+ test/java/nio/channels/Selector/CloseThenRegister.java

Changeset: 802464ea1860
Author:    alanb
Date:      2008-10-14 09:21 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/802464ea1860

Merge

! src/solaris/classes/sun/nio/ch/DevPollSelectorImpl.java
! src/solaris/classes/sun/nio/ch/EPollSelectorImpl.java

Changeset: 0c74f1370dfb
Author:    alanb
Date:      2008-10-14 09:37 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/0c74f1370dfb

NamedAttributeView updates:
- list() should return list instead of Iterable
- list() very slow when invoked to list the named streams of
 large files. Also didn't work with sparse files.

! src/share/classes/java/nio/file/attribute/NamedAttributeView.java
! src/share/classes/sun/nio/fs/AbstractNamedAttributeView.java
! src/solaris/classes/sun/nio/fs/LinuxNamedAttributeView.java
! src/solaris/classes/sun/nio/fs/SolarisNamedAttributeView.java
! src/windows/classes/sun/nio/fs/WindowsFileSystem.java
! src/windows/classes/sun/nio/fs/WindowsNamedAttributeView.java
! src/windows/classes/sun/nio/fs/WindowsNativeDispatcher.java
! src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c
! test/java/nio/file/attribute/NamedAttributeView/Basic.java

Changeset: 6c350c38b283
Author:    alanb
Date:      2008-10-14 09:40 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/6c350c38b283

Files#probeContentType does not return null for unrecognized
  files (GNOME 2.0 only)

! src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java
! test/java/nio/file/Files/ContentType.java

Changeset: 928099dfe108
Author:    alanb
Date:      2008-10-14 09:59 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/928099dfe108

FileSystem#getRootDirectories/getFileStores return iterator over
  same elements
FileSystemProvider#installedProviders should return List

! src/share/classes/java/nio/file/FileSystem.java
! src/share/classes/java/nio/file/spi/FileSystemProvider.java
! src/solaris/classes/sun/nio/fs/UnixFileSystem.java
! src/windows/classes/sun/nio/fs/WindowsFileSystem.java

Changeset: 251f70664db0
Author:    alanb
Date:      2008-10-14 10:07 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/251f70664db0

Small clean-ups in attribute package:
- DOS attributes should be named "readonly", "hidden", ...
- SecureDirectoryStream implementation does not support dynamic access
- Typos/clarifications

! src/share/classes/java/nio/file/attribute/AclEntry.java
! src/share/classes/java/nio/file/attribute/AttributeView.java
! src/share/classes/java/nio/file/attribute/Attributes.java
! src/share/classes/java/nio/file/attribute/BasicFileAttributeView.java
! src/share/classes/java/nio/file/attribute/DosFileAttributeView.java
! src/share/classes/java/nio/file/attribute/PosixFileAttributeView.java
! src/solaris/classes/sun/nio/fs/LinuxDosFileAttributeView.java
! src/solaris/classes/sun/nio/fs/UnixSecureDirectoryStream.java
! src/windows/classes/sun/nio/fs/WindowsFileAttributeViews.java
! test/java/nio/file/DirectoryStream/SecureDS.java
! test/java/nio/file/Path/Misc.java
! test/java/nio/file/attribute/Attributes/Basic.java

Changeset: e3022f78da3b
Author:    alanb
Date:      2008-10-14 10:33 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/e3022f78da3b

FileLock#getChannel creates confusion with pre-existing channel method.

! src/share/classes/java/nio/channels/FileLock.java
! src/share/classes/sun/nio/ch/FileLockImpl.java
! test/java/nio/channels/AsynchronousFileChannel/Basic.java

Changeset: 49e645ae6ee9
Author:    alanb
Date:      2008-10-14 13:20 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/49e645ae6ee9

Updates to simple/prototype AsynchronousDatagramChannel implementation
- attempting to join IPv4 multicast group with IPv6 enable fails with spurious IAE
- read/receive timeout not working

! src/share/classes/java/nio/channels/AsynchronousDatagramChannel.java
! src/share/classes/sun/nio/ch/DatagramChannelImpl.java
! src/share/classes/sun/nio/ch/PendingFuture.java
! src/share/classes/sun/nio/ch/SimpleAsynchronousDatagramChannelImpl.java
! src/solaris/classes/sun/nio/ch/LinuxAsynchronousChannelProvider.java
! src/solaris/classes/sun/nio/ch/SolarisAsynchronousChannelProvider.java
! src/windows/classes/sun/nio/ch/WindowsAsynchronousChannelProvider.java
! test/java/nio/channels/AsynchronousDatagramChannel/Basic.java




More information about the nio-dev mailing list