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

Class.getName() specification incomplete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • beta
    • generic
    • generic



      Name: krT82822 Date: 04/09/99


      The format of the string returned by getName() is unspecified when the Class object represents anything other than an array.

      In saying "fully-qualified name is returned" the spec implies that the fully-qualified name is returned. It is not (see array types).

      For example, what does int.class.getName() return??

      Please, oh please, will someone once and for all do a thorough REVIEW of the reflection API specs. They are, to put it mildly, abysmal. A first-year undergraduate would probably have done a better job.
      (Review ID: 56781)
      ======================================================================

            dkramersunw Douglas Kramer (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: