On Wed, 9 Sep 2026 20:30:27 GMT, Andy Goryachev <[email protected]> wrote:

> I want to ask a philosophical question: what can we do to avoid missing these 
> kinds of dependencies in the future?
> 
> Some kind of annotation? A comment in the base class? Maybe a test that 
> inspects the classpath looking for specific subclasses and checks whether 
> they are covered?
> 
> What do you think?

I'm not sure there's a formalism that could help, we probably just have to 
accept that we're going to make mistakes and sometimes miss things. Comments 
can help, but then they also tend to go stale since they're not testable. In 
general, I think that trying to achieve perfection on the first attempt is the 
wrong goal to optimize for.

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

PR Comment: https://git.openjdk.org/jfx/pull/2303#issuecomment-5620694727

Reply via email to