commit | 7bb56f51e8456b2ae159751a7570e8c3586904a1 | [log] [tgz] |
---|---|---|
author | Thomas Watson <twatson> | Fri Mar 04 17:03:04 2005 +0000 |
committer | Thomas Watson <twatson> | Fri Mar 04 17:03:04 2005 +0000 |
tree | 326d2f643bacfe19d832afc94b197c1bdd6c1db0 | |
parent | dfe386fd06f89a65d8751014469587300ee0311c [diff] |
Bug 87133 ContentHandlerFactory erroneous check for content type
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/protocol/ContentHandlerFactory.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/protocol/ContentHandlerFactory.java index ec92934..8834694 100644 --- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/protocol/ContentHandlerFactory.java +++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/protocol/ContentHandlerFactory.java
@@ -89,7 +89,7 @@ if (obj != null && obj instanceof String[]) { String[] contentHandler = (String[]) obj; for (int j = 0; j < contentHandler.length; j++) { - if (contentHandler[j].equals(contentHandler)) { + if (contentHandler[j].equals(contentType)) { ContentHandler handler = (ContentHandler) context.getService(serviceReferences[i]); proxy = new ContentHandlerProxy(contentType, serviceReferences[i], context); proxies.put(contentType, handler);