JDK-4626596 : Add support for location to identifier to AWTKeyStroke
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2002-01-22
  • Updated: 2002-02-01
  • Resolved: 2002-02-01
Related Reports
Duplicate :  
Relates :  
Description
Developers have requested AWTKeyStroke/KeyStroke have the ability to distinguish location.

Comments
EVALUATION We can probably do this for Tiger. ###@###.### 2002-01-25 We'll probably need APIs to test for equality of KeyStrokes that include location, and that don't include location. My original idea was to have AWTKeyStroke implement the java.util.Comparator interface, and have equals() and compare() be inconsistent. The problem, of course, is that this would impede use of AWTKeyStroke in Maps. Perhaps a better idea would be simply to provide two APIs: equals() and equalsDespiteLocation() (perhaps with a better name). Maybe equals(Object o) and equals(Object o, boolean ignoreLocation) ? ###@###.### 2002-01-28 This bug report was filed by sky@sfbay in response to feedback on the swing feedback alias. Since the submitter's bug report has now been processed, we can close this a duplicate of the actual report. ###@###.### 2002-02-01
01-02-2002