RFR: 4987375: (reflect) Class.get{Declared}Method{s} does not return clone() for array type
Florian Weimer
fweimer at redhat.com
Thu Sep 5 11:22:13 UTC 2013
On 09/04/2013 03:55 PM, Joel Borggren-Franck wrote:
> Hi,
>
> Please review fix for: http://bugs.sun.com/view_bug.do?bug_id=4987375
>
> Webrev: http://cr.openjdk.java.net/~jfranck/4987375/webrev.01/
This:
+ * <p> If this Class object represents an array type, then the
returned array
+ * has a Method object for each of the public methods inherited by the
+ * array type from {@code Object}, except for clone().
should say
"array type from {@code Object}. Although array types define a public
{@code clone()} method, it is not included in the returned array."
Object#clone() is protected (not public), and clone() should use @code
markup.
--
Florian Weimer / Red Hat Product Security Team
More information about the core-libs-dev
mailing list