[Bug 590681] New: Review Request: objenesis - A library for instantiating Java objects
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: Review Request: objenesis - A library for instantiating Java objects
https://bugzilla.redhat.com/show_bug.cgi?id=590681
Summary: Review Request: objenesis - A library for
instantiating Java objects
Product: Fedora
Version: rawhide
Platform: All
OS/Version: Linux
Status: NEW
Severity: medium
Priority: medium
Component: Package Review
AssignedTo: nobody(a)fedoraproject.org
ReportedBy: guido.grazioli(a)gmail.com
QAContact: extras-qa(a)fedoraproject.org
CC: notting(a)redhat.com, fedora-package-review(a)redhat.com
Estimated Hours: 0.0
Classification: Fedora
Spec URL:
http://guidograzioli.fedorapeople.org/packages/objenesis/objenesis.spec
SRPM URL:
http://guidograzioli.fedorapeople.org/packages/objenesis/objenesis-1.2-1....
Description:
Java supports dynamic instantiation of classes using Class.newInstance().
However, this only works if the class has an appropriate constructor. There
are many times when a class cannot be instantiated this way, such as when
the class contains:
* Constructors that require arguments.
* Constructors that have side effects.
* Constructors that throw exceptions.
As a result, it is common to see restrictions in libraries stating that
classes must require a default constructor. Objenesis aims to overcome these
restrictions by bypassing the constructor on object instantiation.
Needing to instantiate an object without calling the constructor is a fairly
specialized task, however there are certain cases when this is useful:
* Serialization, Remoting and Persistence - Objects need to be instantiated
and restored to a specific state, without invoking code.
* Proxies, AOP Libraries and Mock Objects - Classes can be subclassed without
needing to worry about the super() constructor.
* Container Frameworks - Objects can be dynamically instantiated in
non-standard ways.
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
13 years