-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
5.0
-
x86
-
windows_2000
FULL PRODUCT VERSION :
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
The new ParameterizedType interface defines the getRawType method to return the type representing the raw type of the parameterized type. The type of a raw type must be a Class object, so the method should have a return type of Class<?> not Type.
To use this method you have cast the return value to Class.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Always cast the return value to Class
###@###.### 2005-04-14 09:39:02 GMT
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
The new ParameterizedType interface defines the getRawType method to return the type representing the raw type of the parameterized type. The type of a raw type must be a Class object, so the method should have a return type of Class<?> not Type.
To use this method you have cast the return value to Class.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Always cast the return value to Class
###@###.### 2005-04-14 09:39:02 GMT
- relates to
-
JDK-8250659 Clarify in ParameterizedType.getRawType() doc that only Class is returned
- Resolved