changeset 5591:c09f2a432b0d

8004341: Two JCK tests fails with 7u11 b06 Reviewed-by: serb, skoivu
author denis
date Tue, 11 Dec 2012 14:19:16 +0400
parents ee61b528b3f8
children c19d758e44e3 10517eb141bb
files src/share/classes/java/awt/Dialog.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/Dialog.java	Thu Dec 06 17:45:32 2012 +0100
+++ b/src/share/classes/java/awt/Dialog.java	Tue Dec 11 14:19:16 2012 +0400
@@ -1636,12 +1636,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();