Proposal: Deprecate Builders

Werner Lehmann lehmann at
Fri Apr 5 02:44:16 PDT 2013

True - didn't think of that. In practice it might not be that big of a 
problem for those custom control builder classes. It is only an issue 
for classes without a no-args constructors and those are usually 
smallish immutable classes - unlike Pane. The simple workaround then is 
to duplicate the original (smallish) builder and add to it instead of 
extending it. Not perfect but workable.


On 04.04.2013 13:25, Tom Schindl wrote:
> The problem is that if MyClass e.g. extends Pane I'm going to be in
> trouble because I'd have to use deprecated code. Until you have not a
> replacement to all problems a technology is solving you can't deprecate it.
> Clearly there are options, for the FXML code the builder had the
> advantage that the FXML-Code didn't had the hold the logic if something
> was a constructor-only or generally property because it could simply run
> everything through the builder, now it needs to stack up things itself.

More information about the openjfx-dev mailing list