JDK 9 RFR of JDK-8159330: Improve deprecation text for Class.newInstance
Wang Weijun
weijun.wang at oracle.com
Mon Jun 13 02:21:09 UTC 2016
Why not just clazz.getConstructor().newInstance()?
> + * can be replaced by
> + *
> + * <pre>{@code
> + * clazz.getConstructor(new Class<?>[0]).newInstance((Object[])null);
> + * }</pre>
More information about the core-libs-dev
mailing list