Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 41371 invoked from network); 22 Dec 2008 16:41:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Dec 2008 16:41:11 -0000 Received: (qmail 54695 invoked by uid 500); 22 Dec 2008 16:41:08 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 54646 invoked by uid 500); 22 Dec 2008 16:41:08 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 54637 invoked by uid 99); 22 Dec 2008 16:41:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Dec 2008 08:41:08 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Dec 2008 16:41:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6AE6B234C430 for ; Mon, 22 Dec 2008 08:40:44 -0800 (PST) Message-ID: <1760790977.1229964044436.JavaMail.jira@brutus> Date: Mon, 22 Dec 2008 08:40:44 -0800 (PST) From: "Christian Haul (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Issue Comment Edited: (GERONIMO-4477) JNDI NameClassPair always returns isRelative() = false In-Reply-To: <1799070337.1229769764203.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 [ https://issues.apache.org/jira/browse/GERONIMO-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12658582#action_12658582 ] haul@informatik.tu-darmstadt.de edited comment on GERONIMO-4477 at 12/22/08 8:39 AM: -------------------------------------------------------------------- Hi David, thanks for your quick response. I will follow up on the XBEAN tracker. However, with the source you pointed to, the issue is clear: I do a {code} NamingEnumeration namingEnum = context.listBindings(""); while (namingEnum.hasMore()) { Binding nameClassPair = namingEnum.nextElement(); if (nameClassPair.isRelative()) { .... {code} and I get a ContextUtil$ReadOnlyBinding. That class has a very simple isRelative() method: {code} public boolean isRelative() { return false; } {code} :-) was (Author: haul@informatik.tu-darmstadt.de): Hi David, thanks for your quick response. I will follow up on the XBEAN tracker. However, with the source you pointed to, the issue is clear: I do a NamingEnumeration namingEnum = context.listBindings(""); while (namingEnum.hasMore()) { Binding nameClassPair = namingEnum.nextElement(); if (nameClassPair.isRelative()) { .... and I get a ContextUtil$ReadOnlyBinding. That class has a very simple isRelative() method: public boolean isRelative() { return false; } :-) > JNDI NameClassPair always returns isRelative() = false > ------------------------------------------------------ > > Key: GERONIMO-4477 > URL: https://issues.apache.org/jira/browse/GERONIMO-4477 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Affects Versions: 2.1.3 > Environment: Windows XP, Sun JDK 1.5.0 > Reporter: Christian Haul > Priority: Trivial > > When traversing the JNDI tree e.g. in a servlet, the returned NameClassPairs always return "false" for a call on isRelative(). Which is especially astonishing since the debugger shows an internal state of "true" for the property isRelative. Unfortunately I don't have the source in question as it doesn't seem to be in the geronimo source archive. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.