commit | 080e6ef04e7d98f789301ec88066a6137319ea4a | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Wed Jul 25 19:43:49 2012 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Wed Jul 25 19:43:49 2012 +0000 |
tree | 7c4c47f7a6cad67d683cb343aeaf0ba67ec92157 | |
parent | fe1f605e754ed2aa4451fa2bc1496f48d3875996 [diff] |
Properly check for R4 bundles when determining bundle type. (FELIX-3343) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1365704 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/BundleRevisionImpl.java b/framework/src/main/java/org/apache/felix/framework/BundleRevisionImpl.java index 93522d2..bc8de71 100644 --- a/framework/src/main/java/org/apache/felix/framework/BundleRevisionImpl.java +++ b/framework/src/main/java/org/apache/felix/framework/BundleRevisionImpl.java
@@ -93,7 +93,7 @@ m_id = id; m_headerMap = null; m_content = null; - m_manifestVersion = null; + m_manifestVersion = ""; m_symbolicName = null; m_isExtension = false; m_isFragment = false; @@ -250,7 +250,7 @@ public int getTypes() { - return (m_isFragment) ? BundleRevision.TYPE_FRAGMENT : 0; + return (getManifestVersion().equals("2") && m_isFragment) ? BundleRevision.TYPE_FRAGMENT : 0; } public BundleWiring getWiring()