Bug 204754 [DataBinding] BeanObservableValueDecorator.equals method implementation is incorrect
Build ID: I20070621-1340 Steps To Reproduce: The equals() method implementation is not reflexive (a.equals(a) returns false). The decorator is delegating the equals method to the decorated IObservableValue, but first it should check whether the other object to which the decorator is compared is another BeanObservableValueDecorator, if so delegate to check the equality of the decorated IObservableValue. More information:
bundles/org.eclipse.core.databinding.beans/src/org/eclipse/core/internal/databinding/internal/beans/BeanObservableSetDecorator.java
/*******************************************************************************
 * Copyright (c) 2007 Brad Reynolds 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:
 *     Brad Reynolds - initial API and implementation
 ******************************************************************************/
package org.eclipse.core.internal.databinding.internal.beans;
import java.beans.PropertyDescriptor;
import java.util.Collection;
import java.util.Iterator;
import org.eclipse.core.databinding.beans.IBeanObservable;
import org.eclipse.core.databinding.observable.IChangeListener;
import org.eclipse.core.databinding.observable.IStaleListener;
import org.eclipse.core.databinding.observable.Realm;
import org.eclipse.core.databinding.observable.set.IObservableSet;
import org.eclipse.core.databinding.observable.set.ISetChangeListener;
/**
 * {@link IBeanObservable} decorator for an {@link IObservableSet}.
 * 
 * @since 3.3
 */
public class BeanObservableSetDecorator implements IObservableSet, IBeanObservable {