8160623: [PIT] Exception running java/awt/event/KeyEvent/KeyChar/KeyCharTest.java
authorssadetsky
Thu, 30 Jun 2016 20:34:26 +0300
changeset 39540 c428ada91272
parent 39539 c6d88f43892c
child 39541 2d0b64d48027
8160623: [PIT] Exception running java/awt/event/KeyEvent/KeyChar/KeyCharTest.java Reviewed-by: yan, prr
jdk/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp
jdk/test/java/awt/event/KeyEvent/KeyChar/KeyCharTest.java
--- 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