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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 6
    • Affects Version/s: 5.0
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: