Bug 66439 Copy of Class causes update error in package explorer
RC1 RHEL JDK 1.4.2_02 Motif I have experienced a problem where I copy a java file and paste it into the same package, accepting the default new name (CopyOfClass.java) However, the package view does not list the class, but it does list 2 instances of the last class in the package (note that I am using the hierarchical view). The file is aparently inserted in the correct location, but the name->class mapping is incorrect: clicking on classes that appear before where the new class should be inserted brings up the correct class, but clicking on classes that appear after the inserted class brings up a different class than the one selected. Restarting eclipse causes the problem to go away
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
/**
	 * Constant indicating that all levels of the tree should be expanded or
	 * collapsed.
	 * 
	 * @see #expandToLevel
	 * @see #collapseToLevel
	 */
	public static final int ALL_LEVELS = -1;
	/**
	 * List of registered tree listeners (element type: <code>TreeListener</code>). */
	private ListenerList treeListeners = new ListenerList(1);
	/**
	 * The level to which the tree is automatically expanded each time the
	 * viewer's input is changed (that is, by <code>setInput</code>). A
	 * value of 0 means that auto-expand is off.
	 * 
	 * @see #setAutoExpandLevel
	 */
	private int expandToLevel = 0;
	/**
	 * Safe runnable used to update an item.
	 */
	class UpdateItemSafeRunnable extends SafeRunnable {