You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2010/10/22 23:59:51 UTC

svn commit: r1026506 - /tomcat/trunk/java/org/apache/naming/resources/ProxyDirContext.java

Author: kkolinko
Date: Fri Oct 22 21:59:51 2010
New Revision: 1026506

URL: http://svn.apache.org/viewvc?rev=1026506&view=rev
Log:
Revert part of r1026157

Removing "throwa NamingException" from parseName() methods as was done in r1026157 changed their API,
so that derived classes won't be able to throw that exception anymore.

I do not know the full story behind these two parseName() methods, but if they were supposed be overwritten it seems likely that they may throw a NamingException.

Modified:
    tomcat/trunk/java/org/apache/naming/resources/ProxyDirContext.java

Modified: tomcat/trunk/java/org/apache/naming/resources/ProxyDirContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/resources/ProxyDirContext.java?rev=1026506&r1=1026505&r2=1026506&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/resources/ProxyDirContext.java (original)
+++ tomcat/trunk/java/org/apache/naming/resources/ProxyDirContext.java Fri Oct 22 21:59:51 2010
@@ -1469,7 +1469,7 @@ public class ProxyDirContext implements 
      * 
      * @return the parsed name
      */
-    protected String parseName(String name) {
+    protected String parseName(String name) throws NamingException {
         return name;
     }
 
@@ -1479,7 +1479,7 @@ public class ProxyDirContext implements 
      * 
      * @return the parsed name
      */
-    protected Name parseName(Name name) {
+    protected Name parseName(Name name) throws NamingException {
         return name;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org