Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2006-04-26 21:41:28 +0000
committerThomas Watson2006-04-26 21:41:28 +0000
commitb1dc468d26f00b0265be1c7f441621f7c5327e7d (patch)
tree9f755f958c11a6378cea7cfcfc213bbc899ed771
parentf953ec59001faec1ba5bd362bb29c7f44b8533fc (diff)
downloadrt.equinox.framework-20060426.tar.gz
rt.equinox.framework-20060426.tar.xz
rt.equinox.framework-20060426.zip
Bug 138757 The debug messages do not display service property values that are arraysv20060426
-rw-r--r--bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceRegistrationImpl.java17
1 files changed, 14 insertions, 3 deletions
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceRegistrationImpl.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceRegistrationImpl.java
index cc9a23e95..e5b9cb5a4 100644
--- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceRegistrationImpl.java
+++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceRegistrationImpl.java
@@ -619,13 +619,24 @@ public class ServiceRegistrationImpl implements ServiceRegistration {
for (int i = 0; i < size; i++) {
String key = keys[i];
if (!key.equals(Constants.OBJECTCLASS)) {
- if (n > 0) {
+ if (n > 0)
sb.append(", "); //$NON-NLS-1$
- }
sb.append(key);
sb.append('=');
- sb.append(get(key));
+ Object value = get(key);
+ if (value.getClass().isArray()) {
+ sb.append('[');
+ int length = Array.getLength(value);
+ for (int j = 0; j < length; j++) {
+ if (j > 0)
+ sb.append(',');
+ sb.append(Array.get(value, j));
+ }
+ sb.append(']');
+ } else {
+ sb.append(value);
+ }
n++;
}
}

Back to the top