felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1572318 - /felix/sandbox/pderop/dependencymanager-prototype/dm/test/test/ConcurrencyTest.java
Date Wed, 26 Feb 2014 22:45:37 GMT
Author: pderop
Date: Wed Feb 26 22:45:36 2014
New Revision: 1572318

URL: http://svn.apache.org/r1572318
Log:
Always provide an implementation object, when creating a component, because now, any lifecycle
callbacks exceptions are logged;
(if no implementation is provided, then a NPE is now logged, when calling the component's
init/start/stop/destroy methods.).

Modified:
    felix/sandbox/pderop/dependencymanager-prototype/dm/test/test/ConcurrencyTest.java

Modified: felix/sandbox/pderop/dependencymanager-prototype/dm/test/test/ConcurrencyTest.java
URL: http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/dm/test/test/ConcurrencyTest.java?rev=1572318&r1=1572317&r2=1572318&view=diff
==============================================================================
--- felix/sandbox/pderop/dependencymanager-prototype/dm/test/test/ConcurrencyTest.java (original)
+++ felix/sandbox/pderop/dependencymanager-prototype/dm/test/test/ConcurrencyTest.java Wed
Feb 26 22:45:36 2014
@@ -55,6 +55,7 @@ public class ConcurrencyTest {
 			}
 		};
 		
+		c.setImplementation(new Object()); // If not, we may see NullPointers when invoking lifecycle
callbacks
 		c.start();
 		c.add(d);
 		c.add(l);
@@ -78,6 +79,7 @@ public class ConcurrencyTest {
 	@Test
 	public void createComponentAddAndRemoveDependenciesInParallelThreads() throws Exception
{
 		final ComponentImpl c = new ComponentImpl();
+		c.setImplementation(new Object()); // If not, we may see NullPointers when invoking lifecycle
callbacks
 		ExecutorService e = Executors.newFixedThreadPool(16); 
 		c.start();
 		for (int i = 0; i < 1000; i++) {



Mime
View raw message