aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwr...@apache.org
Subject svn commit: r1724284 - /aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/DependencyCalculator.java
Date Tue, 12 Jan 2016 16:53:14 GMT
Author: jwross
Date: Tue Jan 12 16:53:14 2016
New Revision: 1724284

URL: http://svn.apache.org/viewvc?rev=1724284&view=rev
Log:
[ARIES-1485] java.lang.UnsupportedOperationException when a hosted capability is being inserted
by the resolver.

Modified:
    aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/DependencyCalculator.java

Modified: aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/DependencyCalculator.java
URL: http://svn.apache.org/viewvc/aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/DependencyCalculator.java?rev=1724284&r1=1724283&r2=1724284&view=diff
==============================================================================
--- aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/DependencyCalculator.java
(original)
+++ aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/DependencyCalculator.java
Tue Jan 12 16:53:14 2016
@@ -83,8 +83,9 @@ public class DependencyCalculator {
 		@Override
 		public int insertHostedCapability(List<Capability> capabilities,
 				HostedCapability hostedCapability) {
-			capabilities.add(hostedCapability);
-			return capabilities.size() - 1;
+			int sz = capabilities.size();
+			capabilities.add(sz, hostedCapability);
+	        return sz;
 		}
 	}
 



Mime
View raw message