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

In spec for javax.swing.table.TableRowSorter and JTable character "<" is using instead of "&lt;".

XMLWordPrintable

    • b60
    • generic
    • generic

      In javax.swing.table.TableRowSorter class description there is written:
       33 * <pre>
       34 * int[] selection = table.getSelectedRows();
       35 * for (int i = 0; i *<* selection.length; i++) {
       36 * selection[i] = table.convertRowIndexToModel(selection[i]);
       37 * }
       38 * </pre>

      In javax.swing.JTable class description there is written:

      128 * <pre>
      129 * int[] selection = table.getSelectedRows();
      130 * for (int i = 0; i *<* selection.length; i++) {
      131 * selection[i] = table.convertRowIndexToModel(selection[i]);
      132 * }
      133 * // selection is now in terms of the underlying TableModel
      134 * </pre>

      But according to html specification the character entity reference &lt; should be used:
      http://www.w3.org/TR/1998/REC-html40-19980424/charset.html#h-5.3.2

            svioletsunw Scott Violet (Inactive)
            ynovozhi Yulia Novozhilova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: