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

The type of a class literal shouldn't be erased

XMLWordPrintable

    • Cause Known
    • 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

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

              Created:
              Updated:
              Imported:
              Indexed: