Community
Participate
Working Groups
The javadoc for org.eclipse.emf.common.notify.Notification states that getNewValue() contains the elements newly added to the list. It does not specify what it will contain for a Notification of REMOVE, REMOVE_MANY or MOVE. In the case of REMOVE_MANY: org.eclipse.emf.databinding.internal.EMFPropertyListener expects this to be an int[] array. org.eclipse.ocl.examples.impactanalyzer.impl.DerivedPropertyNotifierImpl$DerivedPropertyAdapter fills both newValue and oldValue with the contents of the list before and after the change. ---- Expected change: Adapt the javadoc to reflect the intended usage.
The fix is committed to master: http://git.eclipse.org/c/emf/org.eclipse.emf.git/commit/?id=ab59b2336d74a1e62161fd7f3beebd6b1774c8bc
The changes are available in Kepler.