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

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

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      5.0
    • Introduced In Version:
      5.0
    • Resolved In Build:
      b19
    • CPU:
      generic
    • OS:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: