Name: gm110360 Date: 02/23/2004
FULL PRODUCT VERSION :
java version "1.4.1_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_05-b01)
Java HotSpot(TM) Client VM (build 1.4.1_05-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
The Checkbox in later Java releases (worked fine in earlier Java) can be incorrectly activated by only the mouse up events (where the mouse down events were from another Window).
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the attached sample program.
You can clearly see what is happening, if on the double click, you hold the mouse button down and do not release until a couple of seconds later.
Regression: worked in 1.3
You have a bug in your web form. In the 'Regression' field, all I could see is "Java 2 SDK, Standard E" for all lines.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
When you see the checkbox, it should be OFF, as the code has configured.
ACTUAL -
When you see the checkbox, it is incorrectly turned on.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
public class CheckboxBug extends Frame {
public static void main( String args[] ) {
new CheckboxBug(0);
}
public CheckboxBug(int level) {
if (level==0) {
List list = new List();
list.addItem("Double click me");
add("Center",list);
}
else if (level==1) {
add("Center",new Checkbox("I am OFF",false));
}
move(100,100);
resize(400,300);
show();
}
public boolean action( Event evt, Object what ) {
if (evt.target instanceof List) {
new CheckboxBug(1);
}
return true;
}
}
---------- END SOURCE ----------
Release Regression From : 1.3.1
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.
(Incident Review ID: 240011)
======================================================================
###@###.### 10/6/04 15:03 GMT