In the CSR review of JDK-8207942, the question was raised as to whether the following method in TableColumnHeader can be returned with more precise typing information.
TableViewSkinBase<?, ?, ?, ?, ?>
One suggestion was to make the method in question a generic methods with its own type variables:
<M, S, C, I, TC> TableViewSkinBase<M,S,C extends Control,I extends IndexedCell<M>,TC extends TableColumnBase<S,?>> getTableSkin()
This didn't work when I tried it, but might form the basis for a possible solution.
TableViewSkinBase<?, ?, ?, ?, ?>
One suggestion was to make the method in question a generic methods with its own type variables:
<M, S, C, I, TC> TableViewSkinBase<M,S,C extends Control,I extends IndexedCell<M>,TC extends TableColumnBase<S,?>> getTableSkin()
This didn't work when I tried it, but might form the basis for a possible solution.
- relates to
-
JDK-8207942 Add new protected VirtualFlow methods for subclassing
- Resolved