8160623: [PIT] Exception running java/awt/event/KeyEvent/KeyChar/KeyCharTest.java

Reviewed-by: yan, prr
This commit is contained in:
Semyon Sadetsky 2016-06-30 20:34:26 +03:00
parent a8699979b0
commit e040960f7e
2 changed files with 2 additions and 2 deletions

View File

@ -3541,7 +3541,7 @@ UINT AwtComponent::WindowsKeyToJavaChar(UINT wkey, UINT modifiers, TransOps ops,
BOOL deadKeyFlag = (converted == 2);
// Dead Key
if (converted < 0 || wChar[0] == 0 || isDeadKey) {
if (converted < 0 || isDeadKey) {
translation = java_awt_event_KeyEvent_CHAR_UNDEFINED;
} else
// No translation available -- try known conversions or else punt.

View File

@ -32,7 +32,7 @@ import java.util.Locale;
/*
* @test
* @key headful
* @bug 8022401
* @bug 8022401 8160623
* @summary Wrong key char
* @author Alexandr Scherbatiy
* @run main KeyCharTest