diff options
author | Thomas Watson | 2006-04-26 21:41:28 +0000 |
---|---|---|
committer | Thomas Watson | 2006-04-26 21:41:28 +0000 |
commit | b1dc468d26f00b0265be1c7f441621f7c5327e7d (patch) | |
tree | 9f755f958c11a6378cea7cfcfc213bbc899ed771 | |
parent | f953ec59001faec1ba5bd362bb29c7f44b8533fc (diff) | |
download | rt.equinox.framework-20060426.tar.gz rt.equinox.framework-20060426.tar.xz rt.equinox.framework-20060426.zip |
-rw-r--r-- | bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceRegistrationImpl.java | 17 |
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++; } } |