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

Add getPrimitiveClass() and getWrapperClass() methods to java.lang.Class.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • 6
    • 1.1.6, 1.3.0
    • core-libs

      Name: dbT83986 Date: 01/29/99


      Request for Enhancement:

        Add two new methods to the class java.lang.Class:

        public Class getWrapperClass();
          For primitive classes, returns the associated
          wrapper class. For example, for int.class,
          this would return Integer.class. For other
          classes, throws a ClassNotFoundException.

        public Class getPrimitiveClass();
          For wrapper classes, returns the associated
          primitive class. For example, for Integer.class,
          this would return int.class. For other classes,
          throws a ClassNotFoundException.

      ======================================================================
      ###@###.### 10/28/04 00:59 GMT

            darcy Joe Darcy
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: