Hi All, Please review a fix for the bug: 
https://bugs.openjdk.java.net/browse/JDK-8194135 
<https://bugs.openjdk.java.net/browse/JDK-8194135>

Webrev: http://cr.openjdk.java.net/~sveerabhadra/8194135/webrev.00/ 
<http://cr.openjdk.java.net/~sveerabhadra/8194135/webrev.00/>

Summary: The text selection visibility behaves differently on linux/solaris 
platforms compared to windows or Mac platforms. There were 2 related fixes that 
went in this area. There are: https://bugs.openjdk.java.net/browse/JDK-5100950 
<https://bugs.openjdk.java.net/browse/JDK-5100950> and 
https://bugs.openjdk.java.net/browse/JDK-8188081 
<https://bugs.openjdk.java.net/browse/JDK-8188081>. While fixing the bug 
5100950, a mistake was made to clear out the selection data. This behaviour is 
NOT the native behaviour as found in other native applications. The behaviour 
always is to retain the selection data and control the visibility of it 
depending on the conditions. On linux flavours we display only one selection 
data and upon toggling active application we get to see the selection data of 
that particular application hence we never loose the data. These behaviour 
differences are tested via the test components attached with this fix.
Considering the time, this fix addresses only the awt text components like 
textarea and textfield. Both these classes uses the same caret implementation, 
hence a change to the XAWTCaret is sufficient to reflect to both the text 
components. Swing based text components will be addressed later if there are 
any issues found.

Thanks and regards,
Shashi

Reply via email to