--- old/src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java 2015-10-14 20:40:07.822830163 +0400 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java 2015-10-14 20:40:07.630830172 +0400 @@ -127,7 +127,7 @@ int end = target.getSelectionEnd(); // Fix for 5100200 // Restoring Motif behaviour - // Since the end position of the selected text can be greater then the length of the text, + // Since the end position of the selected text can be greater than the length of the text, // so we should set caret to max position of the text setCaretPosition(Math.min(end, text.length())); if (end > start) {