hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahue...@apache.org
Subject svn commit: r231333 - in /jakarta/hivemind/trunk/framework/src: java/org/apache/hivemind/impl/servicemodel/ThreadedServiceModel.java test/org/apache/hivemind/TestBeanService.java
Date Wed, 10 Aug 2005 21:36:45 GMT
Author: ahuegen
Date: Wed Aug 10 14:36:28 2005
New Revision: 231333

URL: http://svn.apache.org/viewcvs?rev=231333&view=rev
Log:
Fix for HIVEMIND-118

Modified:
    jakarta/hivemind/trunk/framework/src/java/org/apache/hivemind/impl/servicemodel/ThreadedServiceModel.java
    jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/TestBeanService.java

Modified: jakarta/hivemind/trunk/framework/src/java/org/apache/hivemind/impl/servicemodel/ThreadedServiceModel.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/framework/src/java/org/apache/hivemind/impl/servicemodel/ThreadedServiceModel.java?rev=231333&r1=231332&r2=231333&view=diff
==============================================================================
--- jakarta/hivemind/trunk/framework/src/java/org/apache/hivemind/impl/servicemodel/ThreadedServiceModel.java
(original)
+++ jakarta/hivemind/trunk/framework/src/java/org/apache/hivemind/impl/servicemodel/ThreadedServiceModel.java
Wed Aug 10 14:36:28 2005
@@ -170,14 +170,14 @@
 
             _notifier.addThreadCleanupListener(new CleanupListener(core));
 
-            _activeService.set(core);
-
             // Once more ... with bean services, its possible that
             // the factory generated bean does not implement the (synthetic) service
             // interface, so create a bridge to it.
 
             if (!_serviceInterface.isInstance(core))
                 core = constructBridgeProxy(core);
+            
+            _activeService.set(core);
 
             return core;
         }

Modified: jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/TestBeanService.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/TestBeanService.java?rev=231333&r1=231332&r2=231333&view=diff
==============================================================================
--- jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/TestBeanService.java (original)
+++ jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/TestBeanService.java Wed
Aug 10 14:36:28 2005
@@ -33,7 +33,8 @@
         Reverser r = (Reverser) reg.getService(name, Reverser.class);
 
         assertEquals("DNIMEVIH", r.reverse("HIVEMIND"));
-
+        // Call reverse a second time to check for HIVEMIND-118
+        r.reverse("HIVEMIND");
         reg.shutdown();
 
         try



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message