Bug 538913 - [Mac OS]Writable combo.select does not select the item when earlier selectionIndex matches
Summary: [Mac OS]Writable combo.select does not select the item when earlier selection...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: consistency, triaged
Depends on:
Blocks:
 
Reported: 2018-09-11 04:17 EDT by Aparna Argade CLA
Modified: 2020-12-11 14:04 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aparna Argade CLA 2018-09-11 04:17:56 EDT
This happens only on MacOS for select of writable combo when it is intermixed with setText and index is equal to the earlier selectionIndex.

Take the following snippet, it sets "Item 1" on Windows, Linux but keeps "Item 5" on MacOS.
Combo c = new Combo(s, SWT.None);
String items[] = { "Item 1", "Item 2", "Item 3", "Item 4"};
c.setItems(items);
c.select(0);
c.setText("Item 5");
c.select(0);

If the last statement is changed to "c.select(1)" then combo sets "Item 2" on Mac OS as well.
I tested this on Oxygen and Photon and the behavior is the same.
Comment 1 Lakshmi P Shanmugam CLA 2018-12-21 03:35:45 EST
I'm able to reproduce the problem on 4.10.
Comment 2 Eclipse Genie CLA 2020-12-11 14:04:33 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.