JDK-5047859 : (reflect) Class.getField can't find String[].length
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 1.2.1,5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_8
  • CPU: generic
  • Submitted: 2004-05-15
  • Updated: 2017-05-16
  • Resolved: 2013-09-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8 b108Fixed
Related Reports
Relates :  
According to JLS 10.7, every array type has a public field named "length".
Yet Class.getField() doesn't ever return that field, as it is required to
do so by its specification.

EVALUATION Behaviour with respect to the "length" field has not changed since at least 1.2. The specification for Class.getField{s}, does not appear to have been significantly modified since 1.3. -- iag@sfbay 2004-05-15