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

The type of a class literal shouldn't be erased

    XMLWordPrintable

Details

    • Cause Known
    • 5.0
    • 5.0
    • generic
    • generic

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Imported:
                Indexed: