Hi,
Xybrek wrote:
[snip]
> So it means this will fail:
>
> private Object newInstanceSkippingConstructor(final Class clazz) throws
> SecurityException, NoSuchMethodException, IllegalArgumentException,
> IllegalAccessException, InvocationTargetException {
>
> Method newInstance =
> ObjectInputStream.class.getDeclaredMethod("newInstance", Class.class,
> Class.class);
> newInstance.setAccessible(true);
> return newInstance.invoke(null, clazz, Object.class);
>
> }
>
> ?
??
It fails because ObjectInputStream has no "newInstance" method. So what are
you trying to ask?
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email