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

Let Class.getFields() return an ORDERED list of fields

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 1.2.0, 1.4.0
    • core-libs

      Name: krT82822 Date: 02/09/99


      original synopsis: Order of Fields from "Class.getFields()" in "no particular order".

      The documentation for "Class.getFields()" states that it returns
      the Fields in "no particular order". This is very inconvenient.
      In order to write a "stable" Object-Relational mapper, I have to
      have a guarantee that the call to "Class.getFields()" will return
      the Fields in the same order each time, assuming the Class hasn't
      changed. Once the Class changes, I don't need any guarantee.

      If I don't have that guarantee, then I'll have to sort the Fields
      each time I get them. That will make it much slower.
      (Review ID: 48184)
      ======================================================================

            psoper Pete Soper (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: