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: 4948034
Votes 0
Synopsis TextEvent not generated if setValue() invoked on empty TextArea; incompatibility
Category java:classes_awt
Reported Against 1.5
Release Fixed 1.5(tiger-beta)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs 4028580
Submit Date 03-NOV-2003
Description
In JDK 1.3, JDK 1.4, and JDK 1.4.2, a TextEvent is generated if setValue()
is invoked on a textarea that has no text.

In JDK 1.5 however, a TextEvent is not generated in this situation.

The attached program (TextAreaEventTest.java) demonstrates this problem.

Output of the program with JDK 1.4.2:
  Textarea content:
  Invoking setText()...
  Textarea content: Hello
  Received TextEvent
  
  TextEvent was delivered

Output of the program with JDK 1.5:
  Textarea content:
  Invoking setText()...
  Textarea content: Hello

  TextEvent was NOT delivered


This could be a result of the fix for bugid 4028580 (TextArea does not send
TextEvent when setText. Does for insert).


This bug causes the following JCK test to fail:
api/java_awt/Event/TareaEventTests.html#TareaEventTest0001

Moreover, this is a change in behavior between JDK 1.4x and JDK 1.5 that 
appears to be an incompatible change.
Work Around
N/A
Evaluation




The described wrong behavior is still reproducible since the fix
for 4028580 has not been integrated yet into the promoted build.

It looks like build 27 will have the fix for 4028580 which makes
the behavior of text events the same on all supported platforms.

Please test build 27 for the bug.

  xxxxx@xxxxx   2003-11-05

======================================================================




The bug is not reproducible with build 28.
I am going to close this bug as "fixed".
  xxxxx@xxxxx   2003-11-14

======================================================================
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang