Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 86232 invoked from network); 16 Jun 2008 11:35:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jun 2008 11:35:24 -0000 Received: (qmail 17813 invoked by uid 500); 16 Jun 2008 11:35:25 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 17778 invoked by uid 500); 16 Jun 2008 11:35:25 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 17767 invoked by uid 99); 16 Jun 2008 11:35:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 04:35:25 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mccloud35@gmail.com designates 209.85.198.240 as permitted sender) Received: from [209.85.198.240] (HELO rv-out-0708.google.com) (209.85.198.240) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 11:34:36 +0000 Received: by rv-out-0708.google.com with SMTP id k29so5198730rvb.0 for ; Mon, 16 Jun 2008 04:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=vne5mYv98029e8nh4b1RqWxWQjlfr3dB+yjdBGENsQ8=; b=qHq7pmRmZ+2L1j3Y10fqRIta8BwVUy6JsE0WjwwQB3HvNH1KCQ1ulhO4Azm0MWq38S wIaZ27HbmDJ12tYsT3LaCb5vy5RqdpcYRmmsBkNKTFh7mz3LJvNKSBhJ16JK9jpwAat4 W4Oxqh0/eck7fhUNvUfQ2NYytHwaFLy7GM5k8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Ng3/CnUED9VS1F2ysXDxxz03dUIJn3+7NojS8f4zaOQw7ObAdtsr1hbIVzluZD4AfV kzExrpFC6Ft6GC8FqnN+79zTBHCJdDzQpLIAFLAymxHwntd7mjUgeVMi2xpKHemaYEJD A6OzW+AgWZHffOgpXNuiw4xiLx0pzkgCCMIM8= Received: by 10.114.75.6 with SMTP id x6mr5932040waa.187.1213616094886; Mon, 16 Jun 2008 04:34:54 -0700 (PDT) Received: by 10.114.106.17 with HTTP; Mon, 16 Jun 2008 04:34:54 -0700 (PDT) Message-ID: <61d2e9b20806160434n715351cfkc5d68e78730d4ab0@mail.gmail.com> Date: Mon, 16 Jun 2008 17:04:54 +0530 From: "Mackie Mathew" To: dev@harmony.apache.org Subject: [harmony-demo-1] JComboBox.testSetGetSelectedItem() fixed MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5008_10666746.1213616094895" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_5008_10666746.1213616094895 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Patch attached. https://issues.apache.org/jira/browse/HARMONY-5873 The following code in bold was removed to fix the above problem: public void setSelectedItem(Object element) { selectedItemReminder = dataModel.getSelectedItem(); if (isEditable || getIndex(element) != -1 || element == null) { if (element != getSelectedItem() || element != null && !element.equals(getSelectedItem())) { dataModel.setSelectedItem(element); } else if (isEditable && element != null && !element.equals(getEditor().getItem())) { getEditor().setItem(element); * } else { // fire action event even if selection is not changed fireActionEvent(); }* } } Regards, Tharindu ------=_Part_5008_10666746.1213616094895--