Robert Schuster wrote:
>>> The other thing that is used from VMPlainDatagramSocketImpl is the connect()
>>> method. Is it possible for DGRAM sockets to just use VMChannel.connect 
>>> instead?
>>>
>>
>> Yes. The original just called the common method _javanet_connect, anyway.
> Great. However there is just one little question left:
> java.net.SocketImpl.connect() throws IOException while
> java.net.DatagramImpl.connect() throws SocketException. I would have to change
> all throwings of IOException in VMChannel.connect to SocketExceptions and 
> change
> affected signatures accordingly. Is this still ok?
> 

Yeah, throwing SocketException is better, in general. That's another nit
about VMChannel -- those methods usually throw IOException, but the
methods that wrap them only throw SocketException.

Reply via email to