Class Overview
Instantiates a new object on the Harmony JVM by bypassing the constructor (meaning code in
the constructor will never be executed and parameters do not have to be known). This is the
same method used by the internals of standard Java serialization, but relies on internal Harmony
code.
Note, this is work in progress. Harmony 5.0M4 crashes instantiating a class derived from
com.thoughtworks.acceptance.objects.StandardObject, of type
javax.swing.JTable or java.awt.Font. Additionally it fails with a NPE processing the
annotations and has a wrong offset dealing with time zone. Same problems apply to 5.0M5.
Public Constructors
public
HarmonyReflectionProvider
()
Public Methods
public
Object
newInstance
(Class type)
Creates a new instance of the specified type. It is in the responsibility
of the implementation how such an instance is created.
Parameters
type
| the type to instantiate |
Returns
- a new instance of this type
Protected Methods
protected
void
validateFieldAccess
(Field field)