Skip to content

Finalizability should be documented #69

@Pr0methean

Description

@Pr0methean

Objects created without running a constructor cannot be automatically finalized; see https://bugs.openjdk.java.net/browse/JDK-6590839. For ObjenesisStd's default strategy on OpenJDK, this isn't a concern, because it uses the munged Object constructor; but for other Objenesis strategies, including the defaults for other JVMs, it may be. It'd be nice if this was documented (and better yet if there was a way to check it at runtime). Is ReferenceQueue behavior also affected (which would mean users couldn't just implement their own finalizer either)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions