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

CheckBoxTableCell#forTableColumn has unused parameter, can't be used in fxml

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      generic

      Description

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      Linux 4.11.6-3-ARCH #1 SMP PREEMPT Thu Jun 22 12:21:46 CEST 2017 x86_64 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      The class CheckBoxTableCell has several forTableColumn methods, but none which takes no parameters, as opposed to similiar classes, like TextFieldTableCell. In those classes, there is always a no-arg method, which can be used as factory in an fxml-file. Furthermore the parameter of type TableColumn<S,T> is never used in the decompiled method, so I suppose this should not be there.

      So we have a method, which takes a parameter, that is not used and which makes it impossible to directly use this Class as factory in fxml.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Create a subclass, that provides the no-arg method and calls forTableColumn(null);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: