Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkuppe2008-06-12 06:26:59 -0400
committermkuppe2008-06-12 06:26:59 -0400
commit4011a46de5d3c4660d188e661d9ccac209b62d8d (patch)
treee20e909339725f8247dbf1179b8e889f4b8a0763
parent003a4b78b9824a60f32b77000fe72e279525004e (diff)
downloadorg.eclipse.ecf-4011a46de5d3c4660d188e661d9ccac209b62d8d.tar.gz
org.eclipse.ecf-4011a46de5d3c4660d188e661d9ccac209b62d8d.tar.xz
org.eclipse.ecf-4011a46de5d3c4660d188e661d9ccac209b62d8d.zip
RESOLVED - bug 236831: [Discovery][SLP] JSLPNamespace discards IServiceID.getname()v20080612-1321
https://bugs.eclipse.org/bugs/show_bug.cgi?id=236831
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.jslp/src/org/eclipse/ecf/provider/jslp/identity/JSLPNamespace.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.jslp/src/org/eclipse/ecf/provider/jslp/identity/JSLPNamespace.java b/providers/bundles/org.eclipse.ecf.provider.jslp/src/org/eclipse/ecf/provider/jslp/identity/JSLPNamespace.java
index 1b1cb69f3..5e85812ff 100644
--- a/providers/bundles/org.eclipse.ecf.provider.jslp/src/org/eclipse/ecf/provider/jslp/identity/JSLPNamespace.java
+++ b/providers/bundles/org.eclipse.ecf.provider.jslp/src/org/eclipse/ecf/provider/jslp/identity/JSLPNamespace.java
@@ -48,10 +48,13 @@ public class JSLPNamespace extends Namespace {
} else if (parameters[0] instanceof JSLPServiceID) {
return (ID) parameters[0];
- } else if (parameters[0] instanceof IServiceID) {
+ // convert from IServiceID to IServiceTypeID, String
+ } else if (parameters[0] instanceof IServiceID && parameters.length == 1) {
IServiceID anId = (IServiceID) parameters[0];
- parameters[0] = anId.getServiceTypeID();
- return createInstance(parameters);
+ Object[] newParams = new Object[2];
+ newParams[0] = anId.getServiceTypeID();
+ newParams[1] = anId.getName();
+ return createInstance(newParams);
// create by ECF discovery generic IServiceTypeID (but not JSLPServiceID!!!)
} else if (parameters[0] instanceof IServiceTypeID) {

Back to the top