Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 91994 invoked from network); 14 Mar 2007 14:42:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 14:42:30 -0000 Received: (qmail 45912 invoked by uid 500); 14 Mar 2007 14:42:38 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 45893 invoked by uid 500); 14 Mar 2007 14:42: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 45884 invoked by uid 99); 14 Mar 2007 14:42:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 07:42: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; Wed, 14 Mar 2007 07:42:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 98FE771407C for ; Wed, 14 Mar 2007 07:42:09 -0700 (PDT) Message-ID: <1897504.1173883329624.JavaMail.jira@brutus> Date: Wed, 14 Mar 2007 07:42:09 -0700 (PDT) From: "Alexei Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2647) [classlib][swing] javax.swing.text.JTextComponent focusAcceleratorKey property has invalid name In-Reply-To: <26028050.1165933591969.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-2647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexei Zakharov updated HARMONY-2647: ------------------------------------- Priority: Minor (was: Major) > [classlib][swing] javax.swing.text.JTextComponent focusAcceleratorKey property has invalid name > ----------------------------------------------------------------------------------------------- > > Key: HARMONY-2647 > URL: https://issues.apache.org/jira/browse/HARMONY-2647 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Anton Ivanov > Priority: Minor > Attachments: Text.java > > > See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4177283 > Since javax.swing.text.JTextComponent has methods getFocusAccelerator(), setFocusAccelerator(), the corresponding property name should be "focusAccelerator". > The test to reproduce the problem: > ---------------------------------------------------------------------------------- > import java.beans.*; > import javax.swing.text.*; > import javax.swing.event.*; > public class FocusAcceleratorKeyTest { > JTextComponent jtc; > SimplePropertyChangeListener pChListener; > class SimplePropertyChangeListener implements PropertyChangeListener { > PropertyChangeEvent event; > public void propertyChange(final PropertyChangeEvent e) { > if (e.getPropertyName() != "ancestor") { > event = e; > } > } > } > public static void main(String argv[]) { > new FocusAcceleratorKeyTest().test(); > } > public void test() { > pChListener = new SimplePropertyChangeListener(); > jtc = new JTextArea(); > jtc.addPropertyChangeListener(pChListener); > jtc.setFocusAccelerator('b'); > System.out.println(pChListener.event.getPropertyName()); > System.out.println(JTextComponent.FOCUS_ACCELERATOR_KEY); > } > } > ---------------------------------------------------------------------------------- > RI returns the right name for the property: "focusAccelerator" while Harmony returns "focusAcceleratorKey". > Specification says that JTextComponent.FOCUS_ACCELERATOR_KEY is the "bound property name for the focus accelerator" > it is defined as "focusAcceleratorKey" in specification. It seems to be a misprint. > JTextComponent.FOCUS_ACCELERATOR_KEY should be "focusAccelerator" and PropertyChangeEvent.getPropertyName should return a right property name. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.