RFR: 6510914: JScrollBar.getMinimumSize() breaks the contract of JComponent.setMinimumSize() [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Wed Oct 11 06:36:15 UTC 2023
On Wed, 11 Oct 2023 06:13:48 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> src/java.desktop/share/classes/javax/swing/JScrollBar.java line 765:
>>
>>> 763: if (isMinimumSizeSet()) {
>>> 764: return super.getMinimumSize();
>>> 765: }
>>
>> This looks like it has potential to cause many compatibility problems.
>> I think it better to simply update the Jscrollbar spec on these methods to reflect what JScrollbar does.
>
> OK. Fair enough...Updated the spec of `getMinimumSize ` and `getMaximumSize` to mention this behaviour change as JScrollBar doesn't override `setMinimumSize` and `setMaximumSize`
CSR added https://bugs.openjdk.org/browse/JDK-8317857
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15325#discussion_r1354194956
More information about the client-libs-dev
mailing list