Bug 135088 [JFace] AbstractResourceManager.find() returns a RefCount instead of the created resource
M6 If you attempt to call find on an AbstractResourceManager subclass you will get back a RefCount object instead of the resource bound to the desired descriptor. RefCount is a private class that is unusable to clients of this API. This should be addressed for 3.2 to address the intention of the method description.
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/AbstractResourceManager.java
/*******************************************************************************
 * Copyright (c) 2004, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jface.resource;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/**
 * Abstract implementation of ResourceManager. Maintains reference counts for all previously
 * allocated SWT resources. Delegates to the abstract method allocate(...) the first time a resource
 * is referenced and delegates to the abstract method deallocate(...) the last time a reference is
 * removed.
 * 
 * @since 3.1
 */
abstract class AbstractResourceManager extends ResourceManager {