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

class finalizer called on unconstructed object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 1.2.0
    • hotspot
    • sparc
    • solaris_9

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: