geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r433704 - in /geronimo/xbean/branches/colossus/xbean-naming/src/main/java/org/apache/xbean/naming/context: AbstractContext.java WritableContext.java
Date Tue, 22 Aug 2006 17:31:59 GMT
Author: dain
Date: Tue Aug 22 10:31:58 2006
New Revision: 433704

URL: http://svn.apache.org/viewvc?rev=433704&view=rev
Log:
Improve exception error message in AbstractContext
Removed check that stopped rebind from working

Modified:
    geronimo/xbean/branches/colossus/xbean-naming/src/main/java/org/apache/xbean/naming/context/AbstractContext.java
    geronimo/xbean/branches/colossus/xbean-naming/src/main/java/org/apache/xbean/naming/context/WritableContext.java

Modified: geronimo/xbean/branches/colossus/xbean-naming/src/main/java/org/apache/xbean/naming/context/AbstractContext.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/branches/colossus/xbean-naming/src/main/java/org/apache/xbean/naming/context/AbstractContext.java?rev=433704&r1=433703&r2=433704&view=diff
==============================================================================
--- geronimo/xbean/branches/colossus/xbean-naming/src/main/java/org/apache/xbean/naming/context/AbstractContext.java
(original)
+++ geronimo/xbean/branches/colossus/xbean-naming/src/main/java/org/apache/xbean/naming/context/AbstractContext.java
Tue Aug 22 10:31:58 2006
@@ -135,8 +135,12 @@
 
         // if we didn't find an entry, it may be an absolute name
         if (stringName.indexOf(':') > 0) {
-            Context ctx = new InitialContext();
-            return ctx.lookup(parsedName);
+            try {
+                Context ctx = new InitialContext();
+                return ctx.lookup(parsedName);
+            } catch (NamingException ignored) {
+                // thrown below
+            }
         }
         throw new NameNotFoundException(stringName);
     }

Modified: geronimo/xbean/branches/colossus/xbean-naming/src/main/java/org/apache/xbean/naming/context/WritableContext.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/branches/colossus/xbean-naming/src/main/java/org/apache/xbean/naming/context/WritableContext.java?rev=433704&r1=433703&r2=433704&view=diff
==============================================================================
--- geronimo/xbean/branches/colossus/xbean-naming/src/main/java/org/apache/xbean/naming/context/WritableContext.java
(original)
+++ geronimo/xbean/branches/colossus/xbean-naming/src/main/java/org/apache/xbean/naming/context/WritableContext.java
Tue Aug 22 10:31:58 2006
@@ -71,10 +71,6 @@
     }
 
     protected void addBinding(String name, Object value, boolean rebind) throws NamingException
{
-        if (rebind) {
-            throw new OperationNotSupportedException("This conext does not support rebind");
-        }
-
         writeLock.lock();
         try {
             Map bindings = (Map) bindingsRef.get();



Mime
View raw message