Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 72670 invoked from network); 14 Apr 2010 06:25:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Apr 2010 06:25:18 -0000 Received: (qmail 55445 invoked by uid 500); 14 Apr 2010 06:25:18 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 55382 invoked by uid 500); 14 Apr 2010 06:25:17 -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 55286 invoked by uid 99); 14 Apr 2010 06:25:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 06:25:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 06:25:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3E6Oqbi022980 for ; Wed, 14 Apr 2010 02:24:52 -0400 (EDT) Message-ID: <1392457.97071271226292348.JavaMail.jira@thor> Date: Wed, 14 Apr 2010 02:24:52 -0400 (EDT) From: "Kevin Zhou (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-6220) [classlib][jndi] javax.naming.spi.NamingManager.getURLContext(String schema, Hashtable env) return null context for "rmi" schema In-Reply-To: <337520927.1243836727324.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Zhou reassigned HARMONY-6220: ----------------------------------- Assignee: Kevin Zhou > [classlib][jndi] javax.naming.spi.NamingManager.getURLContext(String schema, Hashtable env) return null context for "rmi" schema > -------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-6220 > URL: https://issues.apache.org/jira/browse/HARMONY-6220 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M9 > Reporter: Kevin Zhou > Assignee: Kevin Zhou > Attachments: HARMONY-6220.diff, HARMONY-6220v2.diff > > Original Estimate: 24h > Remaining Estimate: 24h > > Given a test case [1], RI passes both of them while HARMONY fails the 1st scenario. > For scenario 1: RI returns a object of com.sun.jndi.url.rmi.rmiURLContext class, but HARMONY returns null > For scenario 2: both RI and HARMONY return a object of org.apache.harmony.jndi.provider.rmi.rmiURLContext class. > I think in our implementation of NamingManager, we should add a default values for "java.naming.factory.url.pkgs" property. It should contains "com.sun.jndi.url" package. Also, it should try to load class from Harmony customized package "org.apache.harmony.jndi.provider". What do you think? > [1] Test Case: > public void test_NamingManager_getURLContext_scenario1() throws Exception { > Hashtable env = new Hashtable(); > Context context = NamingManager.getURLContext("rmi", env); > assertNotNull(context); > System.out.println(context); > } > public void test_NamingManager_getURLContext_scenario2() throws Exception { > Hashtable env = new Hashtable(); > env.put(Context.URL_PKG_PREFIXES, "org.apache.harmony.jndi.provider"); > Context context = NamingManager.getURLContext("rmi", env); > assertNotNull(context); > System.out.println(context); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira