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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      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);
          }
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: