--- old/src/java.desktop/share/classes/sun/awt/im/InputMethodContext.java 2015-04-01 18:38:00.805151700 +0300 +++ new/src/java.desktop/share/classes/sun/awt/im/InputMethodContext.java 2015-04-01 18:38:00.361595300 +0300 @@ -106,6 +106,14 @@ public void dispatchInputMethodEvent(int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition) { + dispatchInputMethodEvent(id, text, committedCharacterCount, caret, + visiblePosition, -1, -1); + } + + // implements java.awt.im.spi.InputMethodContext.dispatchInputMethodEvent + public void dispatchInputMethodEvent(int id, + AttributedCharacterIterator text, int committedCharacterCount, + TextHitInfo caret, TextHitInfo visiblePosition, int start, int end) { // We need to record the client component as the source so // that we have correct information if we later have to break up this // event into key events. @@ -114,7 +122,8 @@ source = getClientComponent(); if (source != null) { InputMethodEvent event = new InputMethodEvent(source, - id, text, committedCharacterCount, caret, visiblePosition); + id, text, committedCharacterCount, caret, visiblePosition, + start, end); if (haveActiveClient() && !useBelowTheSpotInput()) { source.dispatchEvent(event);