Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48049
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 22 Nov 2009 22:56:53 +0000 (22:56 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 22 Nov 2009 22:56:53 +0000 (22:56 +0000)
Correct copy and paste error and call correct function

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@883177 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/naming/NamingContext.java

index 7ca63e2..ec1f1e1 100644 (file)
@@ -470,7 +470,7 @@ public class NamingContext implements Context {
         
         if (name.size() > 1) {
             if (entry.type == NamingEntry.CONTEXT) {
-                ((Context) entry.value).unbind(name.getSuffix(1));
+                ((Context) entry.value).destroySubcontext(name.getSuffix(1));
             } else {
                 throw new NamingException
                     (sm.getString("namingContext.contextExpected"));