Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4058336
Votes 3
Synopsis In the java.awt.event package the keycode VK_SEPARATOR is misspelled.
Category java:classes_awt
Reported Against 1.1.1 , kestrel-beta
Release Fixed 1.4(merlin-beta)
State 10-Fix Delivered, request for enhancement
Priority: 4-Low
Related Bugs
Submit Date 11-JUN-1997
Description
In the java.awt.event package the keycode VK_Sepatator is misspelled.

Customer descritption:

This bug is in the Beta Refresh using Java 1.1.1.
	
	The keycode VK_SEPARATER in class KeyEvent is misspelled. It should be
	spelled VK_SEPARATOR.
Work Around
N/A
Evaluation
Seems harmless enough to add another constant with the correct spelling.

  xxxxx@xxxxx   1997-06-20

======================================================================
The same still exists as of JDK 1.3.

  xxxxx@xxxxx   1999-12-09


As part of the AWT RFE cleanup effort, I am committing this to Merlin.  
We may also want to deprecate the misspelled constant (this is what we 
have done in the past).  

  xxxxx@xxxxx   1999-12-22

Added the new constant, but did not deprecate the old one.  

  xxxxx@xxxxx   2000-08-11

This bug has not been fixed quite properly.
See delta 1.43.1.2 for java/awt/event/KeyEvent.java:

229a230,234
> 
>     /** 
>      * This constant is obsolete, and is included only for backwards compatibility. 
>      * @see VK_SEPARATOR
>      */
230a236,242
> 
>     /** 
>      * Constant for the Numpad Separator key. 
>      * @since 1.4
>      */
>     public static final int VK_SEPARATOR      = VK_SEPARATER;
> 
867c879
<           case VK_SEPARATER: return Toolkit.getProperty("AWT.separater", "NumPad ,");
---
>           case VK_SEPARATOR: return Toolkit.getProperty("AWT.separater", "NumPad ,");
                           ^                                          ^
                           ^ Fixed ok.                                ^ Not fixed.

String parameter "AWT.separater" in Toolkit.getProperty method
calling is misspelled.
  xxxxx@xxxxx   2000-12-01

The property is not the public API, and really has nothing to do 
with this bug.  

However, it will be changed when the properties files are updated for 1.4 
as part of 4379401. 

  xxxxx@xxxxx   2000-12-01
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang