Re: 8160438: [PIT][macosx] [TEST_BUG] javax/swing/plaf/nimbus/8057791/bug8057791.java fails

2016-07-07 Thread Avik Niyogi
The test does not pass if mac specific check is not done for backgroundcolor. The check is required to get the same values from BufferedImage as they are the same as found with Digital Color Meter. This test case fixes that. Please provide inputs if this fix will get a +1 or if not any positive

Re: [9] Review request for 8160986 Bad rendering of Swing UI controls with Metal L on HiDPI display

2016-07-07 Thread Phil Race
I imagine this was all done to maximise performance. Is there any impact on SwingMark - try D3D both on & off .. The change here : http://cr.openjdk.java.net/~alexsch/8160986/webrev.00/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalScrollButton.java.sdiff.html appears to handle only

[9] Review request for 8160986 Bad rendering of Swing UI controls with Metal L on HiDPI display

2016-07-07 Thread Alexandr Scherbatiy
Hello, Could you review the fix: bug: https://bugs.openjdk.java.net/browse/JDK-8160986 webrev: http://cr.openjdk.java.net/~alexsch/8160986/webrev.00 The proposed fix changes icon shapes drawn by lines to ovals and polygons for JRadioButton, JComboBox and JScrollBar components for the

Re: [9] Review request for JDK-8158325: [macosx]Memory leak in com.apple.laf.ScreenMenu

2016-07-07 Thread Robin Stevens
Hello, I got approval for the backport to JDK8 from Rob McKenna (see http://mail.openjdk.java.net/pipermail/jdk8u-dev/2016-July/005686.html). The backport can just be applied after reshuffling the patch. Test succeeds after applying the patch. Note that for the reshuffling, you need to add the

Re: 8160438: [PIT][macosx] [TEST_BUG] javax/swing/plaf/nimbus/8057791/bug8057791.java fails

2016-07-07 Thread Semyon Sadetsky
On 7/7/2016 6:30 PM, Yuri Nesterenko wrote: On 07/07/2016 06:15 PM, Semyon Sadetsky wrote: On 7/7/2016 5:58 PM, Yuri Nesterenko wrote: On 07/07/2016 05:35 PM, Yuri Nesterenko wrote: On 07/07/2016 05:04 PM, Semyon Sadetsky wrote: On 07.07.2016 16:35, Avik Niyogi wrote: Hi Semyon,

Re: 8160438: [PIT][macosx] [TEST_BUG] javax/swing/plaf/nimbus/8057791/bug8057791.java fails

2016-07-07 Thread Yuri Nesterenko
On 07/07/2016 06:15 PM, Semyon Sadetsky wrote: On 7/7/2016 5:58 PM, Yuri Nesterenko wrote: On 07/07/2016 05:35 PM, Yuri Nesterenko wrote: On 07/07/2016 05:04 PM, Semyon Sadetsky wrote: On 07.07.2016 16:35, Avik Niyogi wrote: Hi Semyon, Thank you for the review comment. In Mac OS X,

Re: 8160438: [PIT][macosx] [TEST_BUG] javax/swing/plaf/nimbus/8057791/bug8057791.java fails

2016-07-07 Thread Semyon Sadetsky
On 7/7/2016 5:58 PM, Yuri Nesterenko wrote: On 07/07/2016 05:35 PM, Yuri Nesterenko wrote: On 07/07/2016 05:04 PM, Semyon Sadetsky wrote: On 07.07.2016 16:35, Avik Niyogi wrote: Hi Semyon, Thank you for the review comment. In Mac OS X, *System Preferences > Displays > Colors > Display

RFR(L): 8160974: [TESTBUG] Mark more headful tests with @key headful.

2016-07-07 Thread Lindenmaier, Goetz
Hi, This change is 'L' because there are changes to a lot of files, but the changes are all similar, so it's rather easy to review. Similar to 8159690 I added @key headful to another around 600 tests. I used different patterns to grep for the headful exceptions. These are now all I could find

Re: 8160438: [PIT][macosx] [TEST_BUG] javax/swing/plaf/nimbus/8057791/bug8057791.java fails

2016-07-07 Thread Yuri Nesterenko
On 07/07/2016 05:35 PM, Yuri Nesterenko wrote: On 07/07/2016 05:04 PM, Semyon Sadetsky wrote: On 07.07.2016 16:35, Avik Niyogi wrote: Hi Semyon, Thank you for the review comment. In Mac OS X, *System Preferences > Displays > Colors > Display Profile* section, the default value is *Color

Re: 8160438: [PIT][macosx] [TEST_BUG] javax/swing/plaf/nimbus/8057791/bug8057791.java fails

2016-07-07 Thread Semyon Sadetsky
On 07.07.2016 16:35, Avik Niyogi wrote: Hi Semyon, Thank you for the review comment. In Mac OS X, *System Preferences > Displays > Colors > Display Profile* section, the default value is *Color LCD*. This causes a failure in some test cases which uses robot.The colour configuration it

Re: 8160438: [PIT][macosx] [TEST_BUG] javax/swing/plaf/nimbus/8057791/bug8057791.java fails

2016-07-07 Thread Avik Niyogi
Hi Semyon, Thank you for the review comment. In Mac OS X, System Preferences > Displays > Colors > Display Profile section, the default value is Color LCD. This causes a failure in some test cases which uses robot.The colour configuration it expects to use is the Generic RGB Profile. That is

Re: 8160438: [PIT][macosx] [TEST_BUG] javax/swing/plaf/nimbus/8057791/bug8057791.java fails

2016-07-07 Thread Semyon Sadetsky
Hi Avik, could you clarify what is "Non-generic display settings"? Is it known bug on OS X? And also please be more specific on "negative scenarios" why they are necessary ? Also could you replace labeled break with "return foundMatch; " --Semyon On 07.07.2016 15:11, Avik Niyogi wrote:

Re: [9] Review request for 8160879 [PIT] CloseOnMouseClickPropertyTest fails with AA hint:Nonantialiased rendering mode exception

2016-07-07 Thread Alexander Zvegintsev
+1 -- Thanks, Alexander. On 07/07/2016 12:51 PM, Semyon Sadetsky wrote: Looks good to me. --Semyon On 07.07.2016 12:33, Alexandr Scherbatiy wrote: Hello, Could you review the fix: bug: https://bugs.openjdk.java.net/browse/JDK-8160879 webrev:

Re: CFV: New Swing Group Member: Sergey Bylokhov

2016-07-07 Thread Alexander Zvegintsev
Vote: yes -- Thanks, Alexander. On 06/23/2016 09:21 AM, Alexandr Scherbatiy wrote: I hereby nominate Sergey Bylokhov (OpenJDK user name: serb) to Membership in the Swing Group. Sergey is active member of Swing group and contributed a lot of fixes which include Aqua L, Retina support on

Re: [9] Fix for JDK-6567433 : JComponent.updateUI() may create StackOverflowError

2016-07-07 Thread Andrej Golovnin
Hi Ajit, one more thing that I have just noticed: /** * Flag to indicate UI update is in progress */ private boolean updateInProgress; I think the field must be transient. In Swing every component is serializable. When updateInProgress is set to true and you serialize/deserialize the

Re: [9] Fix for JDK-6567433 : JComponent.updateUI() may create StackOverflowError

2016-07-07 Thread Ajit Ghaisas
Hi, Thanks Rajeev and Andrej for the suggestions. I have incorporated them in following webrev. http://cr.openjdk.java.net/~aghaisas/6567433/webrev.02/ Regards, Ajit From: Rajeev Chamyal Sent: Thursday, July 07, 2016 3:30 PM To: Alexander Scherbatiy; Ajit Ghaisas;

Re: [9] Fix for JDK-6567433 : JComponent.updateUI() may create StackOverflowError

2016-07-07 Thread Rajeev Chamyal
Hello Ajit, The fix looks fine to me. Regarding test: JTable and JTree tests exceed 80 char limit. Regards, Rajeev Chamyal From: Alexandr Scherbatiy Sent: 07 July 2016 15:17 To: Ajit Ghaisas; Rajeev Chamyal; swing-dev@openjdk.java.net Subject: Re: [9] Fix for JDK-6567433 :

Re: [9] Review request for 8160879 [PIT] CloseOnMouseClickPropertyTest fails with AA hint:Nonantialiased rendering mode exception

2016-07-07 Thread Semyon Sadetsky
Looks good to me. --Semyon On 07.07.2016 12:33, Alexandr Scherbatiy wrote: Hello, Could you review the fix: bug: https://bugs.openjdk.java.net/browse/JDK-8160879 webrev: http://cr.openjdk.java.net/~alexsch/8160879/webrev.00 VALUE_TEXT_ANTIALIAS_OFF should be used for the null

Re: [9] Fix for JDK-6567433 : JComponent.updateUI() may create StackOverflowError

2016-07-07 Thread Alexandr Scherbatiy
The fix looks good to me. Thanks, Alexandr. On 7/7/2016 12:44 PM, Ajit Ghaisas wrote: Hi, Thanks Alex for pointing out there might be more components showing similar behavior. Two more components are identified which may cause this recursion in UpdateUI() method – JTree and

Re: [9] Fix for JDK-6567433 : JComponent.updateUI() may create StackOverflowError

2016-07-07 Thread Ajit Ghaisas
Hi, Thanks Alex for pointing out there might be more components showing similar behavior. Two more components are identified which may cause this recursion in UpdateUI() method - JTree and JTable. Now, total 5 components ( JComboBox, JList, JTree, JTable and

[9] Review request for 8160879 [PIT] CloseOnMouseClickPropertyTest fails with AA hint:Nonantialiased rendering mode exception

2016-07-07 Thread Alexandr Scherbatiy
Hello, Could you review the fix: bug: https://bugs.openjdk.java.net/browse/JDK-8160879 webrev: http://cr.openjdk.java.net/~alexsch/8160879/webrev.00 VALUE_TEXT_ANTIALIAS_OFF should be used for the null antialiased hint instead of VALUE_ANTIALIAS_OFF. Thanks, Alexandr.

Re: [9] Review request for 8058742: Text size is twice bigger under GTK L on Gnome with HiDPI enabled

2016-07-07 Thread Alexandr Scherbatiy
The fix looks good to me. Thanks, Alexandr. On 7/6/2016 10:03 PM, Semyon Sadetsky wrote: On 7/6/2016 6:03 PM, Alexandr Scherbatiy wrote: On 7/6/2016 4:13 PM, Semyon Sadetsky wrote: Hello, Please review fix for JDK9: bug: https://bugs.openjdk.java.net/browse/JDK-8058742 webrev: