5.1.9: Unchecked conversion for multidimensional arrays

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 7
    • Component/s: 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.

            Assignee:
            Alex Buckley
            Reporter:
            Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: