Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkuppe2009-02-16 16:17:04 +0000
committermkuppe2009-02-16 16:17:04 +0000
commit525d3d5e6693006ecf57a6683af7caaa0afc88e1 (patch)
treec3f7fe0d166072fef2dbe14cc0e3aefe867c119e /providers
parent2752864a1de9f0b955414c2601dec86f7ab60b9d (diff)
downloadorg.eclipse.ecf-525d3d5e6693006ecf57a6683af7caaa0afc88e1.tar.gz
org.eclipse.ecf-525d3d5e6693006ecf57a6683af7caaa0afc88e1.tar.xz
org.eclipse.ecf-525d3d5e6693006ecf57a6683af7caaa0afc88e1.zip
NEW - bug 259480: [Discovery][JMDNS] Not all ServiceProperties are valid
https://bugs.eclipse.org/bugs/show_bug.cgi?id=259480 Temporary workaround so CDC tests don't fail with ByteArrayWrapper
Diffstat (limited to 'providers')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/container/JMDNSDiscoveryContainer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/container/JMDNSDiscoveryContainer.java b/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/container/JMDNSDiscoveryContainer.java
index c008a83a8..e9c9d65db 100644
--- a/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/container/JMDNSDiscoveryContainer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/container/JMDNSDiscoveryContainer.java
@@ -487,9 +487,11 @@ public class JMDNSDiscoveryContainer extends AbstractDiscoveryContainerAdapter i
if (svcProps != null) {
for (final Enumeration e = svcProps.getPropertyNames(); e.hasMoreElements();) {
final String key = (String) e.nextElement();
- final Object val = svcProps.getProperty(key);
+ final Object val = svcProps.getPropertyBytes(key);
if (val != null) {
props.put(key, val);
+ } else {
+ props.put(key, svcProps.getProperty(key).toString());
}
}
}

Back to the top