From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23492 invoked by alias); 23 Mar 2004 17:35:22 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 23472 invoked by uid 48); 23 Mar 2004 17:35:22 -0000 Date: Tue, 23 Mar 2004 17:35:00 -0000 From: "goryachev at yahoo dot com" To: java-prs@gcc.gnu.org Message-ID: <20040323173516.14695.goryachev@yahoo.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/14695] New: java.net.NetworkInterface.getByName() throws exception instead of returning null X-Bugzilla-Reason: CC X-SW-Source: 2004-q1/txt/msg00014.txt.bz2 List-Id: This function throws an exception in a case when networr interface by this name is not found. Should return null. Sun's javadoc - public static NetworkInterface getByName(String name) throws SocketException Searches for the network interface with the specified name. Parameters: name - The name of the network interface. Returns: A NetworkInterface with the specified name, or null if there is no network interface with the specified name. Throws: SocketException - If an I/O error occurs. NullPointerException - If the specified name is null. -- Summary: java.net.NetworkInterface.getByName() throws exception instead of returning null Product: gcc Version: 3.3.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: goryachev at yahoo dot com CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org GCC build triplet: 3.3.2 GCC host triplet: x86-linux GCC target triplet: arm-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14695