generics: allow arrays of unbounded generic types

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 5.0
    • Affects Version/s: 5.0
    • Component/s: tools
    • b26
    • generic
    • solaris_8

      Arrays of unbounded generic types are just as safe as arrays of raw types.
      They should be allowed.

      class T {
          void f(Class c) {
              Class<?>[] a = new Class<?>[0];
      Class<?> x = c;
          }
      }

            Assignee:
            Neal Gafter (Inactive)
            Reporter:
            Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: