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

Generics: assignment of Class to type parm's default should elicit error

XMLWordPrintable

    • b40
    • generic
    • generic

      It gets an unchecked assigneent warning iwth -Xlint, but no error

      class C<T> {
          void f(Class c) {
              T t = c;
          }
      }

            never Tom Rodriguez
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: