You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the tested class has a field like
private final Class<?> someType;
then an IllegalAccessError is thrown.
It fails in Instantiator.intantiateObject(..) when it tries to create an
instance of type Class to fill the field with. It seems that Objenesis
can't create Class instances.
I had a quick view at the code, maybe adding an entry to prefabValues might
do the trick.
Original issue reported on code.google.com by [email protected] on 10 Jan 2010 at 1:00
Indeed you're right, I'll fix that in the next release.
In the mean time, you can add them to the prefab values manually:
EqualsVerifier.forClass(Simple.class)
.withPrefabValues(Class.class, Class.class, Object.class)
.verify();
Original issue reported on code.google.com by
[email protected]
on 10 Jan 2010 at 1:00Attachments:
The text was updated successfully, but these errors were encountered: