Use component.getClassName() when checking default dependency mode.


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1732785 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/org.apache.felix.dependencymanager.lambda/src/org/apache/felix/dm/lambda/impl/Helpers.java b/dependencymanager/org.apache.felix.dependencymanager.lambda/src/org/apache/felix/dm/lambda/impl/Helpers.java
index c7c96b7..db0dc5c 100644
--- a/dependencymanager/org.apache.felix.dependencymanager.lambda/src/org/apache/felix/dm/lambda/impl/Helpers.java
+++ b/dependencymanager/org.apache.felix.dependencymanager.lambda/src/org/apache/felix/dm/lambda/impl/Helpers.java
@@ -143,7 +143,7 @@
         String defaultRequiredDependency = ctx.getProperty(DEFAULT_REQUIRED_DEPENDENCY);
         if (defaultRequiredDependency != null) {
             defaultRequiredDependency = defaultRequiredDependency.trim();
-            String componentName = c.getComponentDeclaration().getName();
+            String componentName = c.getComponentDeclaration().getClassName();
             for (String pkg : defaultRequiredDependency.split(",")) {
                 if (componentName.startsWith(pkg)) {
                     return true;