United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4636269 Deadlock when showing a modal dialog from a windowDeactivated event
JDK-4636269 : Deadlock when showing a modal dialog from a windowDeactivated event

Details
Type:
Bug
Submit Date:
2002-02-11
Status:
Resolved
Updated Date:
2002-08-22
Project Name:
JDK
Resolved Date:
2002-08-22
Component:
client-libs
OS:
generic
Sub-Component:
java.awt
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.2 (mantis)

Related Reports
Relates:

Sub Tasks

Description
I am filing this report based on an email.  It is JDK1.4 RC1 feedback.   
See Comments for the email.  

I listed the platform as generic because it wasn't included in the email.  

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class AwtLockBug {

    public AwtLockBug() {
        new MyFrame();
        new MyFrame();
    }

    public class MyFrame extends JFrame {
        public MyFrame() {
            super();
            final MyFrame frame = this;
            addWindowListener(new WindowAdapter() {
                                  public void windowClosing(WindowEvent e) {
                                      System.exit(0);
                                  }
                                  public void windowDeactivated(WindowEvent e) {
                                      new ModalDialog(frame);
                                  }
                              });
            setBounds(0,0,100,100);
            setVisible(true);
        }
    }

    public class ModalDialog extends JDialog {
        public ModalDialog(Frame frame) {
            super(frame, "ModalDialog", true);
            setBounds(100,100,100,100);
            setVisible(true);
        }
    }

    public static void main(String args[]) {
        new AwtLockBug();
    }
}

                                    

Comments
EVALUATION

Commit to fix in mantis (hang).  
###@###.### 2002-02-11


Name: osR10079			Date: 08/02/2002

The problem is the same as 4531693
======================================================================

Name: osR10079			Date: 08/02/2002

The problem is the same as 4531693
======================================================================
                                     
2004-08-24
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis


                                     
2004-08-24



Hardware and Software, Engineered to Work Together