[PATCH] jndikit
Alex Turc <[email protected]> 22 Jul 2003 15:29:49 +0300
| Newsgroups | gmane.comp.java.spice.devel |
|---|---|
| Message-ID | <1058876989.25379.174.camel@patrocle> |
Hi, I suggest the attached patch for RemoteContext.java. Explanation: Using getNamespace() instead of m_namespace is necessarily, since it initializes the variable m_namespace from the environment if not already initialized. Alex.
RemoteContext.java.diff
(text/x-patch, 987 B)
Index: RemoteContext.java
===================================================================
RCS file: /cvsroot/spice/spice/components/jndikit/src/java/org/realityforge/jndikit/RemoteContext.java,v
retrieving revision 1.2
diff -u -w -b -r1.2 RemoteContext.java
--- RemoteContext.java 24 May 2003 23:56:54 -0000 1.2
+++ RemoteContext.java 22 Jul 2003 11:55:55 -0000
@@ -192,7 +192,7 @@
try
{
final NameClassPair[] result = getProvider().list( getAbsoluteName( name ) );
- return new ArrayNamingEnumeration( this, m_namespace, result );
+ return new ArrayNamingEnumeration( this, getNamespace(), result );
}
catch( final Exception e )
{
@@ -223,7 +223,7 @@
}
}
- return new ArrayNamingEnumeration( this, m_namespace, result );
+ return new ArrayNamingEnumeration( this, getNamespace(), result );
}
catch( final Exception e )
{