RFR: 8334739: XYChart.x/yAxisProperty returns incorrect bean

Kevin Rushforth kcr at openjdk.org
Fri Jun 21 17:15:14 UTC 2024


On Fri, 21 Jun 2024 16:23:15 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> Would it be possible to have a unit test to scan over a set of Controls + Shapes + any other classes looking for public properties and checking their `getBean()` values? Is that even possible @kevinrushforth ? This might be a separate issue though.

It seems like it ought to be possible to write such a test. Thinking out loud, perhaps the test could take a list of JavaFX object instances (since we need an instance to inspect the bean, and not all of our classes have a no-arg constructor), and for each object enumerate the methods of its class -- including the superclass methods up the chain -- looking for methods named `xxxProperty` whose return type implements `javafx.beans.property.ReadOnlyProperty`.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1485#issuecomment-2183130982


More information about the openjfx-dev mailing list