changeset 39540:c428ada91272

8160623: [PIT] Exception running java/awt/event/KeyEvent/KeyChar/KeyCharTest.java Reviewed-by: yan, prr
author ssadetsky
date Thu, 30 Jun 2016 20:34:26 +0300
parents c6d88f43892c
children 2d0b64d48027
files jdk/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp jdk/test/java/awt/event/KeyEvent/KeyChar/KeyCharTest.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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