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

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

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: