RFR: 4797982: Setting negative size of JSplitPane divider leads to unexpected results. [v6]

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Aug 22 03:37:11 UTC 2022


On Sun, 21 Aug 2022 21:34:10 GMT, Phil Race <prr at openjdk.org> wrote:

>> We were not sure if -ve divider size can be used by third party implementation. It probably will be considered a compatibility issue as mentioned earlier. 
>> @prrace Will you be ok to throw IAE instead of ignoring -ve value as suggested or should we keep it as it is now in this PR?
>
>> We were not sure if -ve divider size can be used by third party implementation. It probably will be considered a compatibility issue as mentioned earlier.
>> @prrace Will you be ok to throw IAE instead of ignoring -ve value as suggested or should we keep it as it is now in this PR?
> 
> IAE is just too incompatible. The program would probably stop working if anyone is actually doing that.
> If it had been done since day one, yes, but too late now.
> 
> I didn't get why some effect like the "visibility" of the divider in some L&F should be allowed to over-rule the specified size.

@prrace Probably we could reinstate @implNote to the javadoc as I did earlier, to allow 3rd party L&F -ve divider size?

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

PR: https://git.openjdk.org/jdk/pull/9566



More information about the client-libs-dev mailing list