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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: