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

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Tue Mar 16 04:27:06 UTC 2021


On Mon, 15 Mar 2021 21:35:23 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> But probably it might be changed in the future? If for example, we will move some common functionality from the standard subclasses to this method.
>
> It hasn't changed over all these years… In addition to that, the specification says you *must* override and shows the example without calling `super.updateUI()`.
> My take is it's unlikely to change. Yet I understand your concern: Stating explicitly `JComponent.updateUI` is empty means there's no way back. So being cautious wouldn't hurt. From this point of view, `@implnote` still gives some flexibility rather than being cast in stone.

`@implnote` added

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

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


More information about the swing-dev mailing list