Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4127306

System.exit does not exit when runFinalizersOnExit(true)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2beta4
    • CPU:
      x86
    • OS:
      windows_95
    • Verification:
      Not verified

      Description



      Name: rm29839 Date: 04/09/98

      =20
      import java.awt.event.WindowAdapter;
      import java.awt.event.WindowEvent;
      import java.awt.swing.JFrame;

      class MainWindow extends JFrame
      {
      =09public MainWindow()
      =09{
         =09addWindowListener(new WindowAdapter() {
         =09 public void windowClosing(WindowEvent e) {System.exit(0);}
         =09});
      =09}
      }

      public class jfcapp
      {
      =09public static void main(String[] args)
      =09{
            System.runFinalizersOnExit(true);

      =09=09try
      =09=09{
      =09=09=09MainWindow window =3D new MainWindow();

      =09=09=09window.setSize(400, 500);
      =09=09=09window.setVisible(true);
      =09=09}
      =09=09catch (Exception e)
      =09=09{
      =09=09=09e.printStackTrace();
      =09=09}
      =09}
      }
      (Review ID: 27231)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                apalanissunw Anand Palaniswamy (Inactive)
                Reporter:
                rmandelsunw Ronan Mandel (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: