Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5047859

(reflect) Class.getField can't find String[].length

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 1.2.1, 5.0
    • core-libs
    • b108
    • generic
    • generic, solaris_8
    • Verified

      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.

            jfranck Joel Borggrén-Franck (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: