JDK-7194469 : Pressing the Enter key results in an alert tone beep when focus is TextField
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp,windows_7
  • CPU: x86
  • Submitted: 2012-08-28
  • Updated: 2014-09-09
  • Resolved: 2012-09-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b58Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) Client VM (build 23.2-b09, mixed mode, sharing)


ADDITIONAL OS VERSION INFORMATION :
Windows XP  [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
Pressing the Enter key results in an alert tone beep when focus is in a TextField.

  Bug report data and sample copied from older bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6367006

I can confirm that under 1.7.0_06 that the issue occurs. My other test version of Java is 1.6.0_24  which does not exhibit the issue. It may have occurred anywhere between these versions.

Search tag:
Beep or ding on enter

REGRESSION.  Last worked in version 6u31

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.  Run the applet with source code given below.  A working applet and the source code are at segal.org/java/beeping_textfield/.
2.  Click in the TextField to get focus
3.  Press the Enter key




EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No sound should be produced.

ACTUAL -
An alert sound is produced.  This is a problem because it suggests to the user that they did something wrong or the program malfunctioned.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.applet.*;
import java.awt.*;

public class beeping_textfield extends Applet {

public void init()
{
    setBackground(new Color(200, 150, 200));
    TextField textField = new TextField();
    add(textField);
}
} // END OF Class beeping_textfield


---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Requires downgrade of java

Comments
EVALUATION changeset: http://hg.openjdk.java.net/jdk8/awt/jdk/rev/b8a1ff892b33
07-09-2012

EVALUATION The TextField control starts beeping on some keys pressing (enter, up, down...) after switching the EDIT control to RICHEDIT. The suggested fix disables the beeper before the RICHEDIT control keys processing and turns the beeper to the initial state after that.
05-09-2012

EVALUATION The problem is not reproducible with jdk7u4 so looks like a regression.
04-09-2012

EVALUATION The problem is reproducible with Java Plug-in 10.7.2.10 Using JRE version 1.7.0_07-b10 Java HotSpot(TM) Client VM.
04-09-2012

EVALUATION The next mail has been sent to the submitter. ============== I am working on the issue that you have recently filed against JDK. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7194469 You have specified that the problem is reproducible on Windows XP. I cannot reproduce the problem. Could you try to reproduce it with another Windows OS like Windows Vista or Windows 7? ==============
30-08-2012