commit | 5bab24b14851d359e734d780d6b9cb8333ee796e | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu Jul 23 00:40:33 2009 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu Jul 23 00:40:33 2009 +0000 |
tree | e130b4d4c8cb9b9b1b98b288de46b0d34190b4a1 | |
parent | d4a4e0bf2e7c269f83fc2d71a8bdbcd8dbcfb929 [diff] |
Accept "*" for dynamic imports. (FELIX-1400) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@796917 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java b/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java index 1794db5..b3fcb18 100644 --- a/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java +++ b/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java
@@ -229,7 +229,7 @@ throw new BundleException( "Dynamically importing java.* packages not allowed: " + pkgName); } - else if (pkgName.endsWith("*") && !pkgName.endsWith(".*")) + else if (!pkgName.equals("*") && pkgName.endsWith("*") && !pkgName.endsWith(".*")) { throw new BundleException( "Partial package name wild carding is not allowed: " + pkgName);