<Swing Dev> Review Request JDK-8152419 JColorChooser throws Exception
Prem Balakrishnan
prem.balakrishnan at oracle.com
Tue May 31 10:03:57 UTC 2016
Hi Alexander,
Please review the updated patch.
http://cr.openjdk.java.net/~pkbalakr/8152419/webrev.01/
Regards,
Prem
From: Alexander Scherbatiy
Sent: Monday, May 30, 2016 9:42 PM
To: Prem Balakrishnan; Sergey Bylokhov; swing-dev at openjdk.java.net
Subject: Re: Review Request JDK-8152419 JColorChooser throws Exception
On 30/05/16 12:39, Prem Balakrishnan wrote:
Hi,
Please review fix for JDK9,
Bug: https://bugs.openjdk.java.net/browse/JDK-8152419
Webrev: HYPERLINK "http://cr.openjdk.java.net/%7Epkbalakr/8152419/webrev.00/"http://cr.openjdk.java.net/~pkbalakr/8152419/webrev.00/
Issue:
JColorChooser throws Exception(NegativeArraySizeException)
Fix:
Absolute value is passed while creating array.
If component size is 10x10 and insets are [30, 30, 30, 30] the absolute value of the difference will be abs(10 - 30 - 30)=50.
It seems that the right component size should be zero or some minimal values which is max(width-insets.left-insets.right, minWidthValue).
Thanks,
Alexandr.
Regards,
Prem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20160531/40824b1c/attachment.html>
More information about the swing-dev
mailing list