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
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
- relates to
-
JDK-6187166 Consider special case for Class.getSuperclass() result type
-
- Closed
-