RFR: 6510914: JScrollBar.getMinimumSize() breaks the contract of JComponent.setMinimumSize() [v6]

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Nov 10 11:58:01 UTC 2023


On Fri, 10 Nov 2023 11:32:37 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> > > Otherwise, the contract of `set{Min,Max}Size` will still be broken
> > 
> > 
> > That's what we are trying to clarify in the JScrollBar spec that the contract specified in JComponent is not valid for this widget because of so and so reason, right?
> 
> Exactly! And it is the `set-` functions that need to change.

So, you want to just add new set methods to this class just to add some clarification without any implementation change?
OK with me but need to wait for @prrace also to provide his inputs too...If he also is ok to add the spec clarification in to be newly added set methods, instead of the existing get methods which he was ok with at start, I can do the needful..

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

PR Comment: https://git.openjdk.org/jdk/pull/15325#issuecomment-1805606342


More information about the client-libs-dev mailing list