8004341: Two JCK tests fails with 7u11 b06
authordenis
Wed, 12 Dec 2012 21:08:19 +0400
changeset 16103 c9ffd920e3f0
parent 16102 59bd4d83778a
child 16104 234ab73a1830
8004341: Two JCK tests fails with 7u11 b06 Reviewed-by: serb, skoivu
jdk/src/share/classes/java/awt/Dialog.java
--- a/jdk/src/share/classes/java/awt/Dialog.java	Fri Dec 07 22:49:08 2012 +0400
+++ b/jdk/src/share/classes/java/awt/Dialog.java	Wed Dec 12 21:08:19 2012 +0400
@@ -1638,12 +1638,13 @@
         if (localModalityType == null) {
             this.modal = fields.get("modal", false);
             setModal(modal);
+        } else {
+            this.modalityType = localModalityType;
         }
 
         this.resizable = fields.get("resizable", true);
         this.undecorated = fields.get("undecorated", false);
         this.title = (String)fields.get("title", "");
-        this.modalityType = localModalityType;
 
         blockedWindows = new IdentityArrayList<>();