--- old/src/share/classes/java/lang/Class.java 2013-08-26 14:13:43.124045450 +0200 +++ new/src/share/classes/java/lang/Class.java 2013-08-26 14:13:42.952045442 +0200 @@ -1495,9 +1495,9 @@ * interface, this method returns the fields of this interface and of all * its superinterfaces. * - *

The implicit length field for array class is not reflected by this - * method. User code should use the methods of class {@code Array} to - * manipulate arrays. + *

If this Class object represents an array type, then the returned array + * does not contain a Field object for the 'length' field of the array + * type. * *

See The Java Language Specification, sections 8.2 and 8.3. * @@ -1601,7 +1601,7 @@ * {@code String} specifying the simple name of the desired field. * *

The field to be reflected is determined by the algorithm that - * follows. Let C be the class represented by this object: + * follows. Let C be the class or interface represented by this object: *

    *
  1. If C declares a public field with the name specified, that is the * field to be reflected.
  2. @@ -1614,6 +1614,9 @@ * is thrown. *
* + *

If this Class object represents an array type, then this method does + * not find the 'length' field of the array type. + * *

See The Java Language Specification, sections 8.2 and 8.3. * * @param name the field name