|
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.
|