/[classpath]/classpath/java/net/DatagramSocket.java
ViewVC logotype

Diff of /classpath/java/net/DatagramSocket.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.25 by arenn, Sat May 24 04:37:18 2003 UTC revision 1.26 by mkoch, Fri May 30 12:44:45 2003 UTC
# Line 167  public class DatagramSocket Line 167  public class DatagramSocket
167      impl = new PlainDatagramSocketImpl();      impl = new PlainDatagramSocketImpl();
168      impl.create();      impl.create();
169    
170      if (laddr != null)      if (laddr == null)
171          laddr = InetAddress.ANY_IF;
172        
173        try
174        {        {
175          try          localAddr = laddr;
176            {          impl.bind (port, laddr);
177              localAddr = laddr;        }
178              impl.bind(port, laddr);      catch (SocketException exception)
179            }        {
180          catch (SocketException exception)          impl.close ();
181            {          throw exception;
182              impl.close();        }
183              throw exception;      catch (RuntimeException exception)
184            }        {
185          catch (RuntimeException exception)          impl.close ();
186            {          throw exception;
187              impl.close();        }
188              throw exception;      catch (Error error)
189            }        {
190          catch (Error error)          impl.close ();
191            {          throw error;
             impl.close();  
             throw error;  
           }  
192        }        }
193    }    }
194    

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26