On Thu, 4 Aug 2022 21:29:49 GMT, Kevin Rushforth <k...@openjdk.org> wrote:

> As I mentioned in that JBS issue, I tend to agree that if we were starting 
> today with a blank sheet of paper, we might have disallowed null and defined 
> a "noop" selection model and/or focus model. At this point, though, it would 
> be a breaking change, even though we don't specify the behavior of null, so 
> we ought to make it work in those places where it doesn't.

I agree, if we could do it from scratch we can just implement something like a 
`NonNullObjectProperty` which won't allow null in some way. Or the JDK 
implements some way of declaring a variable as not nullable. 😃 

And I agree that improving the docs makes sense and more information is always 
good.

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

PR: https://git.openjdk.org/jfx/pull/711

Reply via email to