felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r499488 - /incubator/felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java
Date Wed, 24 Jan 2007 17:16:58 GMT
Author: rickhall
Date: Wed Jan 24 09:16:57 2007
New Revision: 499488

URL: http://svn.apache.org/viewvc?view=rev&rev=499488
Log:
Slight modification to the dynamic import optimization patch to make it
more correct.

Modified:
    incubator/felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java

Modified: incubator/felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java?view=diff&rev=499488&r1=499487&r2=499488
==============================================================================
--- incubator/felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java
(original)
+++ incubator/felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/R4SearchPolicyCore.java
Wed Jan 24 09:16:57 2007
@@ -509,7 +509,7 @@
                 String dynPkgName = ((Requirement) dynamics[i]).getPackageName();
                 boolean wildcard = (dynPkgName.lastIndexOf(".*") >= 0);
                 dynPkgName = (wildcard)
-                    ? dynPkgName.substring(0, dynPkgName.length() - 2) : dynPkgName;
+                    ? dynPkgName.substring(0, dynPkgName.length() - 1) : dynPkgName;
                 if (dynPkgName.equals("*") ||
                     pkgName.equals(dynPkgName) ||
                     (wildcard && pkgName.startsWith(dynPkgName)))



Mime
View raw message