Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 45275 invoked from network); 19 Oct 2007 17:36:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Oct 2007 17:36:43 -0000 Received: (qmail 82926 invoked by uid 500); 19 Oct 2007 17:36:30 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 82904 invoked by uid 500); 19 Oct 2007 17:36:30 -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 82895 invoked by uid 99); 19 Oct 2007 17:36:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2007 10:36:29 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Fri, 19 Oct 2007 17:36:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EDD5271422B for ; Fri, 19 Oct 2007 10:35:50 -0700 (PDT) Message-ID: <3031801.1192815350971.JavaMail.jira@brutus> Date: Fri, 19 Oct 2007 10:35:50 -0700 (PDT) From: "Andrey Pavlenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4761) [classlib][awt] InputEvent.getModifiers() doesn't return modifiers for mouse release event In-Reply-To: <8134316.1189176570838.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-4761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrey Pavlenko updated HARMONY-4761: ------------------------------------- Attachment: HARMONY-4761-ModifiersProcessingTest.patch HARMONY-4761-ModifiersProcessing.patch I've played with RI and found many differences with Harmony in key/mouse modifiers processing. I've reimplemented event processing in 3 classes - InputEvent, MouseEvent and KeyEvent. Now I don't see differences with RI in modifiers processing, but there is no guarantee that Harmony's behavior is the same as RI's because it's not well documented. Also I modified some tests and added additional tests to MouseEventTest. If no one objects I'll apply these patches. > [classlib][awt] InputEvent.getModifiers() doesn't return modifiers for mouse release event > ------------------------------------------------------------------------------------------ > > Key: HARMONY-4761 > URL: https://issues.apache.org/jira/browse/HARMONY-4761 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Windows > Reporter: Dmitriy Matveev > Assignee: Alexey Petrenko > Attachments: HARMONY-4761-ModifiersProcessing.patch, HARMONY-4761-ModifiersProcessingTest.patch, HARMONY-4761-MouseEventTest.patch > > > Reproducer: > import java.awt.Frame; > import java.awt.Graphics; > import java.awt.Graphics2D; > import java.awt.event.MouseEvent; > import java.awt.event.MouseListener; > import java.awt.event.WindowAdapter; > import java.awt.event.WindowEvent; > public class MouseReleaseTest { > public static void main(String[] args) { > Frame f = new Frame(); > f.setBounds(0, 0, 800, 600); > f.setVisible(true); > f.addWindowListener(new WindowAdapter() { > public void windowClosing(WindowEvent ev) { > System.exit(0); > } > }); > > f.addMouseListener(new MouseListener(){ > public void mouseReleased(MouseEvent e){ > System.out.println(e); > } > public void mouseClicked(MouseEvent e) { } > public void mouseEntered(MouseEvent e) { } > public void mouseExited(MouseEvent e) { } > public void mousePressed(MouseEvent e) { } > }); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.