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

JDI: System.runFinalizersOnExit(true): Unable to hit breakpoint in finalize()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.3.1
    • core-svc
    • None
    • x86
    • windows_nt

      package test;

      public class Untitled21 {
          public Untitled21 () {
              System.out.println("constructor");
          }

          protected void finalize() {
              System.out.println("finalizing Untitled21"); // add breakpoint here!!
          }

          public static void main(String args[]) {
              new Untitled21 ();
              System.out.println("bye");
              System.runFinalizersOnExit(true);
          }
      }

            tbell Tim Bell
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: