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

compiler allows new array of array of type parameter

XMLWordPrintable

    • b49
    • generic
    • solaris_8

      The following should not compile, as it opens a loophole in the type system.

      class J<T> {
          {
              Object o = new T[3][];
          }
      }

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: