finalization enabled on instance memory allocation, not object construction

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.1, 1.2.0, 6
    • Component/s: hotspot
    • None
    • generic, other, sparc
    • generic, solaris_2.5, solaris_9

      In a simple Java class (attached) the "finalize routine is only called if

      1. The object reference is set to null before program exit AND

      2. The mainline code sleeps for a few seconds before exiting



      also .. if these conditions are met, but if the constructor fails, later on, the finalize routine is STILL called!! (See example in attachment)

      ron.kleinman@Eng 1997-02-25

            Assignee:
            Coleen Phillimore
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: