Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 35844 invoked from network); 5 Dec 2006 04:17:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2006 04:17:45 -0000 Received: (qmail 52249 invoked by uid 500); 5 Dec 2006 04:17:53 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 52224 invoked by uid 500); 5 Dec 2006 04:17:53 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 52215 invoked by uid 99); 5 Dec 2006 04:17:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 20:17:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 20:17:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5121B7141E4 for ; Mon, 4 Dec 2006 20:17:23 -0800 (PST) Message-ID: <12849319.1165292243329.JavaMail.jira@brutus> Date: Mon, 4 Dec 2006 20:17:23 -0800 (PST) From: "Stepan Mishura (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-2410) [luni] java.security.cert.X509CertSelector.addPathToName() throws IOException while RI does not In-Reply-To: <27180650.1165233141306.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-2410?page=all ] Stepan Mishura reassigned HARMONY-2410: --------------------------------------- Assignee: Stepan Mishura > [luni] java.security.cert.X509CertSelector.addPathToName() throws IOException while RI does not > ----------------------------------------------------------------------------------------------- > > Key: HARMONY-2410 > URL: http://issues.apache.org/jira/browse/HARMONY-2410 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Artem Aliev > Assigned To: Stepan Mishura > > Problem details: Harmony does not throw SocketException for > java.net.MulticastSocket.setInterface(InetAddress) while RI does. > java 1.5 spec says: > Throws: > SocketException - if there is an error in the underlying protocol, such as a > TCP error. > test for reproducing: > import junit.framework.TestCase; > import java.net.*; > import java.io.IOException; > public class test extends TestCase { > public void testcase0() { > InetAddress ia = null; > try{ > ia = InetAddress.getByName("224.0.0.5"); > } > catch(UnknownHostException e) {e.printStackTrace();} > MulticastSocket mcs = null; > try{ > mcs = new MulticastSocket(); > } > catch (IOException ioe) {ioe.printStackTrace();} > try{ > mcs.setInterface(ia); > assertEquals(true,false); > } > catch(SocketException se){se.printStackTrace();} > assertEquals(true,true); > } > } > OUTPUT: > HARMONY_j9:/export/users/varistov/UTG/drl/drl_20060929_lnx_ia32_0002_gcc_r_complete_GIT_M > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software > Foundation or its licensors, as applicable. > java version "1.5.0" > pre-alpha : not complete or compatible > svn = rsvn: '.' is not a working copy, (Sep 29 2006), Linux/ia32/gcc 3.3.3, > release build > http://incubator.apache.org/harmony > .F > Time: 0.028 > There was 1 failure: > 1) testcase0(test)junit.framework.AssertionFailedError: expected: but > was: > at test.testcase0(test.java:17) > at java.lang.reflect.VMReflection.invokeMethod(Native Method) > FAILURES!!! > Tests run: 1, Failures: 1, Errors: 0 > ------------------------------------------------------------------------ > SUN > java version "1.5.0_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) > .java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound > to any interface > at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method) > at > java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:299) > at java.net.MulticastSocket.setInterface(MulticastSocket.java:420) > at test.testcase0(test.java:17) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at junit.framework.TestCase.runTest(TestCase.java:154) > at junit.framework.TestCase.runBare(TestCase.java:127) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at junit.textui.TestRunner.doRun(TestRunner.java:116) > at junit.textui.TestRunner.start(TestRunner.java:172) > at junit.textui.TestRunner.main(TestRunner.java:138) > Time: 0.023 > OK (1 test) -- 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