7041778: Move SCTP implementation out of sun.nio.ch and into its own package

Alan Bateman Alan.Bateman at oracle.com
Thu Feb 2 06:47:30 PST 2012

On 30/01/2012 16:45, Chris Hegarty wrote:
> This CR will be used to move the SCTP Java implementation into its own 
> package, from sun.nio.ch to sun.nio.ch.sctp. There is currently no 
> restriction that libsctp cannot depend on libnet/nio, so the native 
> implementation simply needs to reflect the new Java package structure.
> As a consequence of moving the SCTP implementation into its own 
> package some of the package private sun.nio.ch classes need to made 
> public so the SCTP implementation can access them. Utility classes 
> like IOStatus, IOUtil, Net, and Util. The SelChImpl interface that the 
> SCTP channels implement, etc.
> http://cr.openjdk.java.net/~chegar/7041778/webrev.00/webrev/
> Thanks,
> -Chris.
My only concern with changing the access to public on these classes is 
that it creates an unsupported way for channel implementations outside 
of the JDK to hook into the internal details of the Selector 
implementation. I've often thought that we should try to come up with an 
interface for this but it's not an easy problem. Otherwise the changes 
look fine and will clearly help the modularity work.


More information about the nio-dev mailing list