[jboss-cvs] JBossAS SVN: r95162 - projects/naming/trunk/jnpserver/src/main/java/org/jnp/interfaces.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Oct 20 04:51:38 EDT 2009
Author: wolfc
Date: 2009-10-20 04:51:37 -0400 (Tue, 20 Oct 2009)
New Revision: 95162
Modified:
projects/naming/trunk/jnpserver/src/main/java/org/jnp/interfaces/NamingContext.java
Log:
JBNAMING-38: added context information to the error message
Modified: projects/naming/trunk/jnpserver/src/main/java/org/jnp/interfaces/NamingContext.java
===================================================================
--- projects/naming/trunk/jnpserver/src/main/java/org/jnp/interfaces/NamingContext.java 2009-10-20 08:33:47 UTC (rev 95161)
+++ projects/naming/trunk/jnpserver/src/main/java/org/jnp/interfaces/NamingContext.java 2009-10-20 08:51:37 UTC (rev 95162)
@@ -29,10 +29,9 @@
import java.lang.reflect.InvocationTargetException;
import java.net.DatagramPacket;
import java.net.InetAddress;
+import java.net.InetSocketAddress;
import java.net.MulticastSocket;
import java.net.Socket;
-import java.net.InetSocketAddress;
-import java.net.UnknownHostException;
import java.rmi.ConnectException;
import java.rmi.MarshalledObject;
import java.rmi.NoSuchObjectException;
@@ -55,6 +54,7 @@
import javax.naming.CommunicationException;
import javax.naming.ConfigurationException;
import javax.naming.Context;
+import javax.naming.ContextNotEmptyException;
import javax.naming.InitialContext;
import javax.naming.InvalidNameException;
import javax.naming.LinkRef;
@@ -63,7 +63,6 @@
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.NotContextException;
-import javax.naming.ContextNotEmptyException;
import javax.naming.Reference;
import javax.naming.Referenceable;
import javax.naming.ServiceUnavailableException;
@@ -1294,7 +1293,7 @@
{
if((naming instanceof NamingEvents) == false)
{
- throw new UnsupportedOperationException("Naming implementation does not support NamingExt");
+ throw new UnsupportedOperationException("Naming implementation (" + naming + ") does not implement NamingEvents");
}
NamingEvents next = (NamingEvents) naming;
try
More information about the jboss-cvs-commits
mailing list