From 01c280d99f64fb7c12c2283ab84e9ca655f11940 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Wed, 23 Jan 2019 14:47:06 +0200 Subject: Bug 542420 - Offer T getService(Class key) in IProvisioningAgent getSimpleName is not enough to uniquely identify class file and all the implementors use getName as key. Change accordingly. Change-Id: I1d0294f290df2496849aa1ab75d82f8b5163898f Signed-off-by: Alexander Kurtakov --- .../src/org/eclipse/equinox/internal/p2/core/ProvisioningAgent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bundles') diff --git a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/ProvisioningAgent.java b/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/ProvisioningAgent.java index 5181955e0..b7ef6d969 100644 --- a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/ProvisioningAgent.java +++ b/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/ProvisioningAgent.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2017 IBM Corporation and others. + * Copyright (c) 2009, 2019 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -84,7 +84,7 @@ public class ProvisioningAgent implements IProvisioningAgent, ServiceTrackerCust @SuppressWarnings("unchecked") @Override public T getService(Class key) { - return (T) getService(key.getSimpleName()); + return (T) getService(key.getName()); } private void checkRunning() { -- cgit v1.2.3