8160623: [PIT] Exception running java/awt/event/KeyEvent/KeyChar/KeyCharTest.java
Reviewed-by: yan, prr
--- a/jdk/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp Thu Jun 30 20:07:32 2016 +0400
+++ b/jdk/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp Thu Jun 30 20:34:26 2016 +0300
@@ -3541,7 +3541,7 @@
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.
--- a/jdk/test/java/awt/event/KeyEvent/KeyChar/KeyCharTest.java Thu Jun 30 20:07:32 2016 +0400
+++ b/jdk/test/java/awt/event/KeyEvent/KeyChar/KeyCharTest.java Thu Jun 30 20:34:26 2016 +0300
@@ -32,7 +32,7 @@
/*
* @test
* @key headful
- * @bug 8022401
+ * @bug 8022401 8160623
* @summary Wrong key char
* @author Alexandr Scherbatiy
* @run main KeyCharTest