hg: nio/nio/jdk: 10 new changesets

alan.bateman at sun.com alan.bateman at sun.com
Tue Sep 2 12:24:34 PDT 2008


Changeset: be8edf5f6b62
Author:    alanb
Date:      2008-09-01 19:57 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/be8edf5f6b62

Fixed inconsistent usage of IAE and OUE in file system API

! src/share/classes/java/nio/channels/AsynchronousFileChannel.java
! src/share/classes/java/nio/channels/FileChannel.java
! src/share/classes/java/nio/file/FileRef.java
! src/share/classes/java/nio/file/Path.java
! src/share/classes/java/nio/file/Watchable.java
! src/share/classes/java/nio/file/spi/FileSystemProvider.java
! src/share/classes/sun/nio/fs/AbstractPoller.java
! src/share/classes/sun/nio/fs/PollingWatchService.java
! src/solaris/classes/sun/nio/fs/LinuxWatchService.java
! src/solaris/classes/sun/nio/fs/SolarisWatchService.java
! src/solaris/classes/sun/nio/fs/UnixChannelFactory.java
! src/solaris/classes/sun/nio/fs/UnixCopyFile.java
! src/solaris/classes/sun/nio/fs/UnixFileModeAttribute.java
! src/solaris/classes/sun/nio/fs/UnixPath.java
! src/windows/classes/sun/nio/fs/WindowsChannelFactory.java
! src/windows/classes/sun/nio/fs/WindowsFileCopy.java
! src/windows/classes/sun/nio/fs/WindowsPath.java
! src/windows/classes/sun/nio/fs/WindowsSecurityDescriptor.java
! src/windows/classes/sun/nio/fs/WindowsWatchService.java
! test/java/nio/file/Path/CopyAndMove.java
! test/java/nio/file/Path/Misc.java
! test/java/nio/file/Path/SBC.java
! test/java/nio/file/WatchService/Basic.java

Changeset: 5d278726f0dc
Author:    chegar
Date:      2008-08-29 17:46 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/5d278726f0dc

6576763: Thread constructors throw undocumented NPE for null name
Summary: update javadoc to specify NPE as well as fix minor bug in implementation.
Reviewed-by: alanb

! src/share/classes/java/lang/Thread.java
+ test/java/lang/ThreadGroup/NullThreadName.java

Changeset: dc604a6da888
Author:    swamyv
Date:      2008-08-29 14:33 -0700
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/dc604a6da888

6614052: jhat fails to read heap dump > 2GB.
Summary: Modified the jhat code to use long for unsigned int. This is a forward port of changes from Kevin Walls.
Reviewed-by: jjh

! src/share/classes/com/sun/tools/hat/internal/parser/HprofReader.java

Changeset: f9cf71f806eb
Author:    alanb
Date:      2008-08-31 18:32 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/f9cf71f806eb

6570619: (bf) DirectByteBuffer.get/put(byte[]) does not scale well
Reviewed-by: iris

! make/java/java/mapfile-vers
! src/share/classes/java/nio/Bits.java
! src/share/classes/java/nio/Direct-X-Buffer.java
! src/share/native/java/nio/Bits.c

Changeset: 343253d05123
Author:    alanb
Date:      2008-08-31 18:39 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/343253d05123

4640544: New I/O: Complete socket-channel functionality
Reviewed-by: iris, sherman, chegar

! make/java/nio/FILES_java.gmk
! make/java/nio/Makefile
! make/java/nio/mapfile-linux
! make/java/nio/mapfile-solaris
! make/mksample/nio/Makefile
+ make/mksample/nio/multicast/Makefile
! src/share/classes/java/net/NetworkInterface.java
+ src/share/classes/java/net/ProtocolFamily.java
+ src/share/classes/java/net/SocketOption.java
+ src/share/classes/java/net/StandardProtocolFamily.java
+ src/share/classes/java/net/StandardSocketOption.java
! src/share/classes/java/nio/channels/DatagramChannel.java
+ src/share/classes/java/nio/channels/MembershipKey.java
+ src/share/classes/java/nio/channels/MulticastChannel.java
+ src/share/classes/java/nio/channels/NetworkChannel.java
! src/share/classes/java/nio/channels/ServerSocketChannel.java
! src/share/classes/java/nio/channels/SocketChannel.java
! src/share/classes/java/nio/channels/exceptions
+ src/share/classes/java/nio/channels/package-info.java
- src/share/classes/java/nio/channels/package.html
! src/share/classes/java/nio/channels/spi/SelectorProvider.java
! src/share/classes/sun/nio/ch/DatagramChannelImpl.java
! src/share/classes/sun/nio/ch/DatagramSocketAdaptor.java
+ src/share/classes/sun/nio/ch/ExtendedSocketOption.java
+ src/share/classes/sun/nio/ch/MembershipKeyImpl.java
+ src/share/classes/sun/nio/ch/MembershipRegistry.java
! src/share/classes/sun/nio/ch/Net.java
- src/share/classes/sun/nio/ch/OptionAdaptor.java
+ src/share/classes/sun/nio/ch/OptionKey.java
! src/share/classes/sun/nio/ch/SelectorProviderImpl.java
! src/share/classes/sun/nio/ch/ServerSocketAdaptor.java
! src/share/classes/sun/nio/ch/ServerSocketChannelImpl.java
! src/share/classes/sun/nio/ch/SocketAdaptor.java
! src/share/classes/sun/nio/ch/SocketChannelImpl.java
- src/share/classes/sun/nio/ch/SocketOpts.java
- src/share/classes/sun/nio/ch/SocketOptsImpl.java
- src/share/classes/sun/nio/ch/exceptions
! src/share/native/java/net/net_util.c
! src/share/native/java/net/net_util.h
+ src/share/native/sun/nio/ch/genSocketOptionRegistry.c
+ src/share/sample/nio/multicast/MulticastAddress.java
+ src/share/sample/nio/multicast/Reader.java
+ src/share/sample/nio/multicast/Sender.java
! src/solaris/native/java/net/net_util_md.c
! src/solaris/native/sun/nio/ch/DatagramChannelImpl.c
! src/solaris/native/sun/nio/ch/FileKey.c
! src/solaris/native/sun/nio/ch/Net.c
! src/solaris/native/sun/nio/ch/ServerSocketChannelImpl.c
! src/solaris/native/sun/nio/ch/SocketChannelImpl.c
! src/solaris/native/sun/nio/ch/nio_util.h
! src/windows/native/java/net/net_util_md.c
! src/windows/native/sun/nio/ch/DatagramChannelImpl.c
! src/windows/native/sun/nio/ch/Net.c
! src/windows/native/sun/nio/ch/ServerSocketChannelImpl.c
! src/windows/native/sun/nio/ch/SocketChannelImpl.c
+ test/java/nio/channels/DatagramChannel/BasicMulticastTests.java
+ test/java/nio/channels/DatagramChannel/MulticastSendReceiveTests.java
+ test/java/nio/channels/DatagramChannel/NetworkConfiguration.java
+ test/java/nio/channels/DatagramChannel/SocketOptionTests.java
+ test/java/nio/channels/ServerSocketChannel/SocketOptionTests.java
+ test/java/nio/channels/SocketChannel/SocketOptionTests.java
! test/java/nio/channels/TestUtil.java
+ test/java/nio/channels/etc/NetworkChannelTests.java

Changeset: 0a427d0e70a7
Author:    emcmanus
Date:      2008-09-01 17:11 +0200
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/0a427d0e70a7

6731410: JMXServiceURL cannot use @ConstructorProperties for compatibility reasons
Reviewed-by: dfuchs

! src/share/classes/javax/management/MXBean.java
! src/share/classes/javax/management/remote/JMXServiceURL.java
! test/javax/management/mxbean/JMXServiceURLTest.java

Changeset: 3e9d85711a1a
Author:    alanb
Date:      2008-09-01 20:15 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/3e9d85711a1a

Merge

! make/java/nio/FILES_java.gmk
! make/java/nio/Makefile
! make/java/nio/mapfile-linux
! make/java/nio/mapfile-solaris
! make/mksample/nio/Makefile
! src/share/classes/java/net/NetworkInterface.java
! src/share/classes/java/nio/Bits.java
! src/share/classes/java/nio/channels/Channels.java
! src/share/classes/java/nio/channels/DatagramChannel.java
! src/share/classes/java/nio/channels/ServerSocketChannel.java
! src/share/classes/java/nio/channels/SocketChannel.java
! src/share/classes/java/nio/channels/exceptions
! src/share/classes/java/nio/channels/package-info.java
! src/share/classes/java/nio/channels/spi/SelectorProvider.java
! src/share/classes/sun/nio/ch/DatagramChannelImpl.java
! src/share/classes/sun/nio/ch/DatagramSocketAdaptor.java
! src/share/classes/sun/nio/ch/Net.java
! src/share/classes/sun/nio/ch/ServerSocketAdaptor.java
! src/share/classes/sun/nio/ch/ServerSocketChannelImpl.java
! src/share/classes/sun/nio/ch/SocketAdaptor.java
! src/share/classes/sun/nio/ch/SocketChannelImpl.java
! src/share/native/java/net/net_util.c
! src/share/sample/nio/multicast/Reader.java
! src/solaris/native/java/net/net_util_md.c
! src/solaris/native/sun/nio/ch/DatagramChannelImpl.c
! src/solaris/native/sun/nio/ch/Net.c
! src/solaris/native/sun/nio/ch/ServerSocketChannelImpl.c
! src/solaris/native/sun/nio/ch/SocketChannelImpl.c
! src/windows/native/java/net/net_util_md.c
! src/windows/native/sun/nio/ch/Net.c

Changeset: 24326979a036
Author:    alanb
Date:      2008-09-02 15:51 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/24326979a036

Permission check in Path#register insufficient when FILE_TREE modifier used (win only)
SecurityException in Path#register when granted permission to read directory (sol10 only)

! src/share/classes/sun/nio/fs/PollingWatchService.java
! src/windows/classes/sun/nio/fs/WindowsPath.java
+ test/java/nio/file/WatchService/WithSecurityManager.java
+ test/java/nio/file/WatchService/denyAll.policy
+ test/java/nio/file/WatchService/grantDirAndOneLevel.policy
+ test/java/nio/file/WatchService/grantDirAndTree.policy
+ test/java/nio/file/WatchService/grantDirOnly.policy

Changeset: 1d1d66438d11
Author:    emcmanus
Date:      2008-09-02 14:14 +0200
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/1d1d66438d11

6405862: Allow CompositeType to have zero items
6737133: Compilation failure of test/javax/management/eventService/LeaseManagerDeadlockTest.java
6737140: Javadoc of some throw clauses of MBeanServer and MBeanServerConnection is garbled
6737143: createMBean of MBeanServer should acquire 2 extra throw clauses present in MBeanServerConnection
Reviewed-by: dfuchs

! src/share/classes/javax/management/MBeanServer.java
! src/share/classes/javax/management/MBeanServerConnection.java
! src/share/classes/javax/management/openmbean/CompositeType.java
! test/javax/management/eventService/LeaseManagerDeadlockTest.java

Changeset: ac40bd69f869
Author:    alanb
Date:      2008-09-02 16:30 +0100
URL:       http://hg.openjdk.java.net/nio/nio/jdk/rev/ac40bd69f869

Merge





More information about the nio-dev mailing list