Make sure table row has correct number of cells

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: 16
    • Component/s: tools

      As shown by JDK-8256580 and JDK-8267219, the new grid-based Table class is quite susceptible to corruption by wrong numbers of table cells. There is currently no mechanism in place to make sure the arguments passed to the `addRow` methods have the correct number of cells. We should add a check for the correct number of cells and throw IllegalArgumentException in case of mismatch.

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: