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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P5
    • 6
    • Affects Version/s: 1.1.6, 1.3.0
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: