RFR: 8251353: Many javafx scenegraph classes have implicit no-arg constructors

Kevin Rushforth kcr at openjdk.java.net
Tue Aug 18 18:49:58 UTC 2020


On Tue, 18 Aug 2020 17:49:06 GMT, Nir Lisker <nlisker at openjdk.org> wrote:

> The classes should be inspected to see if one is needed and if its doc is suitable.

This is an excellent point. One of the main reasons for not relying on implicit, no-arg constructors is that you might
get a public constructor where one isn't intended. See [JDK-8229472](https://bugs.openjdk.java.net/browse/JDK-8229472)
and  [JDK-8240688](https://bugs.openjdk.java.net/browse/JDK-8240688) for what is needed if we determine that there
should not be a public constructor.

To that end, I'll go through it more carefully and comment on this specific question.

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

PR: https://git.openjdk.java.net/jfx/pull/283


More information about the openjfx-dev mailing list