harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-616) Remove one FIXME from "receive(ByteBuffer)" method of org.apache.harmony.nio.internal.DatagramChannelImpl class.
Date Mon, 19 Jun 2006 06:13:29 GMT
Remove one FIXME from "receive(ByteBuffer)" method of org.apache.harmony.nio.internal.DatagramChannelImpl
class.
----------------------------------------------------------------------------------------------------------------

         Key: HARMONY-616
         URL: http://issues.apache.org/jira/browse/HARMONY-616
     Project: Harmony
        Type: Improvement

  Components: Classlib  
    Reporter: Andrew Zhang
    Priority: Minor


If a DatagramSocket is unbound, receive(ByteBuffer) should return immediately, and the socket
status remains unbound. Currently Harmony implementation is correct. I'll upload a patch to
remove this FIXME and update corresponding test. Thanks.
the FIXME in receive method:
      if (!isBound) {
            // FIXME RI seems does not perform as datagram socket
            // SecurityManager security = System.getSecurityManager();
            // if (security != null)
            // security.checkListen(0);
            // final byte[] any = new byte[] { 0, 0, 0, 0 };
            // try {
            // networkSystem.bind(fd, 0, InetAddress.getByAddress(any));
            // } catch (UnknownHostException e) {
            // // impossible,do nothing
            // }
            // isBound = true;
            return null;
        }


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message