class finalizer called on unconstructed object

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.2.0
    • Component/s: hotspot
    • sparc
    • solaris_9

      The finalize() method is invoked on an instance for which the constructor has not been invoked. (The reason the constructor hasn't been invoked is probably because an OutOfMemory condition caused an exception to be thrown by the memory allocator). This is non-intuitive for the programmer and probably inconsistent with the language spec.

      This is a side-effect observed with the test cases provided for Bug 4109815.

      Jar files are attached along with a script jb.sh to run the programs that provoke the problem.

            Assignee:
            Unassigned
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: