<Swing Dev> RFR: 8263472: Specification of JComponent::updateUI doesn't mention that the original implementaiton does nothing [v2]

Alexey Ivanov aivanov at openjdk.java.net
Mon Mar 15 18:12:10 UTC 2021


On Mon, 15 Mar 2021 17:34:30 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> > I thought about it earlier but I raised this PR as I don't see this method was updated from inception so I was not sure if it will be in future and also since it already says "JComponent subclasses **must** override this method" so a noop default implementation will not be a problem, I guess.
> 
> Based on the current spec we may add some kind of assertion that this method must not be called.

I'm afraid this can be interpreted in a wrong way: *never* call `JComponent.updateUI()`, which is not what we want to say, is it?

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

PR: https://git.openjdk.java.net/jdk/pull/2955


More information about the swing-dev mailing list