Project: Eclipse_Platform_UI
Bug 189167 [KeyBindings] Binding.equals() gives back wrong value
Reported: 2007-05-25 11:50:08 | Status: verified fixed

org.eclipse.jface.bindings.Binding.equals() in line 272 (in 3.2.2 line 268) return (getType() != binding.getType()); This expression gives back false instead of true if the two values are same. Need to change to: return (getType() == binding.getType());

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/bindings/Binding.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/BindingInteractionsTest.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/Bug189167Test.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/KeysTestSuite.java