<AWT Dev> [10] JDK-8194135: The content in textArea can not be pasted after clicking "Copy" button.

Semyon Sadetsky semyon.sadetsky at oracle.com
Fri Jan 12 16:38:27 UTC 2018


Hi Shashi,

Why did change generic DefaultCaret class while only platform specific 
behavior should be fixed?

--Semyon


On 01/12/2018 02:22 AM, shashidhara veerabhadraiah wrote:
> Hi All, Please review a fix for the bug: 
> https://bugs.openjdk.java.net/browse/JDK-8194135
>
> Webrev: http://cr.openjdk.java.net/~sveerabhadra/8194135/webrev.00/ 
> <http://cr.openjdk.java.net/%7Esveerabhadra/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 and 
> 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



More information about the awt-dev mailing list