Project: Eclipse_Platform_UI
Bug 164268 [DataBinding] BeansObservables.observeList returns a list without an element type
Reported: 2006-11-12 18:33:51 | Status: verified fixed

When constructing an IObservableList from BeansObservables the list that is returned doesn't have an element type. The scenario that this causes an issue in is when attempting to observe a detail list. Currently when you run TestMasterDetail an exception is thrown when a person is selected and this is because the detail list has an element type of Object.class instead of the appropriate type. We need to ensure that the type is set on the list that is returned from the observables factory.

Files changed in fix:
bundles/org.eclipse.core.databinding.beans/src/org/eclipse/core/databinding/beans/BeansObservables.java tests/org.eclipse.jface.tests.databinding/src/org/eclipse/core/tests/databinding/beans/BeansObservablesTest.java tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/BindingTestSuite.java