Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 10799 invoked from network); 12 Mar 2007 15:06:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2007 15:06:33 -0000 Received: (qmail 94579 invoked by uid 500); 12 Mar 2007 15:06:39 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 94534 invoked by uid 500); 12 Mar 2007 15:06:38 -0000 Mailing-List: contact commits-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 commits@harmony.apache.org Received: (qmail 94505 invoked by uid 99); 12 Mar 2007 15:06:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 08:06:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 08:06:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 85173714070 for ; Mon, 12 Mar 2007 08:06:09 -0700 (PDT) Message-ID: <15087842.1173711969542.JavaMail.jira@brutus> Date: Mon, 12 Mar 2007 08:06:09 -0700 (PDT) From: "Alexei Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-2305) [classlib][awt] Several components can be active concurrently In-Reply-To: <32585886.1164370082087.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexei Zakharov resolved HARMONY-2305. -------------------------------------- Resolution: Fixed Thanks Denis and Andrey. I've applied the patch at the revision 517236. Please verify. BTW the test fails on RI on Linux. But RI's behavior on Linux is really strange, I'm -1 for following it. Now we are compatible with Windows variant of RI. > [classlib][awt] Several components can be active concurrently > ------------------------------------------------------------- > > Key: HARMONY-2305 > URL: https://issues.apache.org/jira/browse/HARMONY-2305 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Denis Kishenko > Assigned To: Alexei Zakharov > Attachments: HARMONY-2305-ButtonRTest.patch, HARMONY-2305-ButtonStateController.patch > > > Several components can be active concurrently. For example, 2 buttons can be > depressed at one time (one with mouse, one with space key). It may lead > unpredictable behavior. > ============ Test ============== > import java.awt.BorderLayout; > import java.awt.Container; > import java.awt.event.WindowAdapter; > import java.awt.event.WindowEvent; > import java.awt.Button; > import javax.swing.JFrame; > public class Test { > public static void main(String[] args) { > > JFrame f = new JFrame("Test"); > Container cp = f.getContentPane(); > cp.add(BorderLayout.NORTH, new Button("Button 1")); > cp.add(BorderLayout.SOUTH, new Button("Button 2")); > f.addWindowListener( > new WindowAdapter() { > public void windowClosing(WindowEvent e) { > System.exit(0); > } > } > ); > f.setSize(200, 80); > f.setVisible(true); > } > > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.