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

(reflect) ParameterizedType.getRawType should return Class<?> not Type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs

      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

            darcy Joe Darcy
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: