8168681: Correct deprecation text for Class.newInstance
authordarcy
Thu, 03 Nov 2016 13:06:24 -0700
changeset 41891 92539b6985a5
parent 41890 ab67b8f4f2fe
child 41909 7cdc6dfe9c9b
8168681: Correct deprecation text for Class.newInstance Reviewed-by: mchung
jdk/src/java.base/share/classes/java/lang/Class.java
--- a/jdk/src/java.base/share/classes/java/lang/Class.java	Thu Nov 03 16:19:29 2016 +0300
+++ b/jdk/src/java.base/share/classes/java/lang/Class.java	Thu Nov 03 13:06:24 2016 -0700
@@ -485,7 +485,7 @@
      * can be replaced by
      *
      * <pre>{@code
-     * clazz.getConstructor().newInstance()
+     * clazz.getDeclaredConstructor().newInstance()
      * }</pre>
      *
      * The latter sequence of calls is inferred to be able to throw