On Fri, 21 Jun 2024 16:23:15 GMT, Andy Goryachev <ango...@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

Reply via email to