The type of a class literal shouldn't be erased

XMLWordPrintable

    • 5.0
    • 5.0
    • generic
    • generic

      This program doesn't compile:

      class Test {
          void test(String name) {
      Class<? extends Enum<?>> enumClass
      = Class.forName(name).asSubclass(Enum.class);
          }
      }


      ###@###.### 2004-12-15 17:02:48 GMT

            Assignee:
            Unassigned
            Reporter:
            Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: