# Objenesis

> Create Java objects without calling their constructors

Source: https://talira.ai/catalog/objenesis-tdk99bvp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / reflection](https://talira.ai/categories/libraries/reflection), [languages / java](https://talira.ai/categories/languages/java)
- Licence: Apache-2.0[^3]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [EasyMock](https://talira.ai/orgs/easymock-project.md)

Objenesis is a small Java library that instantiates a class without calling its constructor, for classes whose constructors need arguments, have side effects or throw. Serialization, remoting and persistence libraries, proxy and AOP libraries and mock-object frameworks use it, and it can be embedded inside another library. It tries several strategies depending on the JVM, its vendor and the security manager, and ships a TCK to check what works in a given environment.

## Links

- GitHub: https://github.com/easymock/objenesis
- Docs: https://objenesis.org/tutorial.html

## Problems it solves

- create an instance of a Java class that has no no-arg constructor without calling its constructor
- my mocking or serialization library needs to instantiate objects while skipping constructor side effects
- restore Java objects from storage without running their constructor code

## Features

- instantiates objects without invoking a constructor
- standard and serialization-compatible instantiators
- picks a strategy per JVM, vendor and security manager
- a TCK to test which classes can be instantiated in your environment
- can be embedded in another library

## Limitations

- On recent Java versions it relies on sun.misc.Unsafe and reflective access, so modular applications may need --add-modules jdk.unsupported or --add-opens flags.[^1]

## Trust

Overall: 0.52 out of 1.
Signals: maintenance 0.82, adoption 0.56, momentum 0.21, community 0.56, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 33 commits in the last 90 days
- latest release 3.6 4 months ago
- 629 GitHub stars
- 24 contributors
- backed by EasyMock

## Sources

[^1]: https://objenesis.org/details.html (checked 28 Nov 2026)
[^2]: https://objenesis.org/ (checked 28 Nov 2026)
[^3]: https://github.com/easymock/objenesis/blob/master/LICENSE.txt (checked 28 Nov 2026)
