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

5.1.9: Unchecked conversion for multidimensional arrays

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7
    • specification
    • Verified

      Unchecked conversion is defined for one-dimensional array types:
      List[] -> List<String>[]

      But not for multi-dimensional array types:
      List[][] -> List<String>[][]

      Presumably, this is simply an oversight.

      javac (versions 6 through 8) supports both examples.

            abuckley Alex Buckley
            dlsmith Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: