scalafx icon indicating copy to clipboard operation
scalafx copied to clipboard

"static" methods referring to delegate class should prefer ScalaFX argument types

Open jpsacha opened this issue 4 years ago • 0 comments

Currently test check for implementation of "static" (companion object) methods of a JavaFX class and require matching signature. That results in requirement that the companion object methods use JavaFX types of arguments. The ScalaFX types would be preferred and the test should check that ScalaFX types are used.

The test is implemented in scalafx.testutil.AbstractComparator#compareMethods

For instance, the test checks for presence of:

Tooltip.install(node: javafx.scene.Node, tooltip: javafx.scene.control.Tooltip)

The test should rather check for:

Tooltip.install(node: scalafx.scene.Node, tooltip: scalafx.scene.control.Tooltip)

jpsacha avatar Mar 22 '22 18:03 jpsacha