commit | 912b1f7508c1d7cb0555fb9deca32e939dc5db86 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Fri Jul 25 18:47:43 2008 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Fri Jul 25 18:47:43 2008 +0000 |
tree | b718cf82e4b726b6ef0a50003a962389e30fc605 | |
parent | b7694699476e4901402d4d37b8f6e725a0195867 [diff] |
Fixed a bug where the m_revisions array was not being correctly rolled back after a bundle update throws an exception. (FELIX-647) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@679877 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java b/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java index bd9268f..18c6c88 100644 --- a/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java +++ b/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java
@@ -762,6 +762,7 @@ BundleRevision[] tmp = new BundleRevision[m_revisions.length - 1]; System.arraycopy(m_revisions, 0, tmp, 0, m_revisions.length - 1); + m_revisions = tmp; return true; }