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

Please change the signature of java.lang.Object.getClass()

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P5
    • 6
    • 5.0
    • core-libs
    • 5.0
    • 5.0
    • b19
    • generic
    • generic

    Description

      The current signature for Object.getClass() is confusing:

          public final native Class<? extends Object> getClass();

      Please change the signature to:

          <T> public final native Class<? extends T> getClass();

      This will alert the casual reader to the fact that this method is special cased
      by the compiler.
      ###@###.### 10/30/04 00:16 GMT

      Attachments

        Issue Links

          Activity

            People

              ahe Peter Ahe
              ahe Peter Ahe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: