Re: RFR: 8244681: Add a warning for possibly lossy conversion in compound assignments [v6]

2022-05-13 Thread Adam Sotona
> Please review this patch adding new lint option, **lossy-conversions**, to > javac to warn about type casts in compound assignments with possible lossy > conversions. > > The new lint warning is shown if the type of the right-hand operand of a > compound assignment is not assignment compatibl

Re: RFR: 8286562: GCC 12 reports some compiler warnings [v5]

2022-05-13 Thread Yasumasa Suenaga
> I saw some compiler warnings when I tried to build OpenJDK with GCC 12.0.1 on > Fedora 36. > As you can see, the warnings spreads several areas. Let me know if I should > separate them by area. > > * -Wstringop-overflow > * src/hotspot/share/oops/array.hpp > * > src/hotspot/share/jfr/

Re: RFR: 8284956: Potential leak awtImageData/color_data when initializes X11GraphicsEnvironment [v2]

2022-05-13 Thread Aleksey Shipilev
On Thu, 28 Apr 2022 14:58:28 GMT, Zhengyu Gu wrote: >> During initializing native data of `X11GraphicsEnvironment`, a single >> `AwtGraphicsConfigData` is used/reused, not only failed cases, but also >> succeeded cases. So `AwtGraphicsConfigData` internal states need to be >> cleanup properly

Integrated: 8284956: Potential leak awtImageData/color_data when initializes X11GraphicsEnvironment

2022-05-13 Thread Zhengyu Gu
On Wed, 20 Apr 2022 13:48:19 GMT, Zhengyu Gu wrote: > During initializing native data of `X11GraphicsEnvironment`, a single > `AwtGraphicsConfigData` is used/reused, not only failed cases, but also > succeeded cases. So `AwtGraphicsConfigData` internal states need to be > cleanup properly to a

Re: RFR: 8284956: Potential leak awtImageData/color_data when initializes X11GraphicsEnvironment [v2]

2022-05-13 Thread Zhengyu Gu
On Wed, 27 Apr 2022 17:59:01 GMT, Phil Race wrote: >> Zhengyu Gu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Aleksey and Andrew's comments > > Marked as reviewed by prr (Reviewer). Thanks for the reviews, @prrace @shipilev and @gnu

Re: RFR: 8286562: GCC 12 reports some compiler warnings [v5]

2022-05-13 Thread Yasumasa Suenaga
On Fri, 13 May 2022 10:02:30 GMT, Yasumasa Suenaga wrote: >> I saw some compiler warnings when I tried to build OpenJDK with GCC 12.0.1 >> on Fedora 36. >> As you can see, the warnings spreads several areas. Let me know if I should >> separate them by area. >> >> * -Wstringop-overflow >> *

Re: RFR: 8190907: Windows 10 default Korean Font Malgun Gothic available not used by GUI elements even though available without Korean Language Pack [v4]

2022-05-13 Thread Phil Race
On Wed, 16 Mar 2022 06:02:28 GMT, Prasanta Sadhukhan wrote: >> Malgun_Gothic(https://en.wikipedia.org/wiki/Malgun_Gothic) had replaced >> Gulim korean font so it needs to be updated to show korean fonts > > Prasanta Sadhukhan has updated the pull request incrementally with one > additional com

Re: RFR: 8285306: Fix typos in java.desktop [v2]

2022-05-13 Thread Magnus Ihse Bursie
> I ran `codespell` on the `src/java.desktop` directory, and accepted those > changes where it indeed discovered real typos. > > I ignored typos in public methods and variables. Maybe they can be fixed > later on without much fanfare, if they are in internal classes. Typos in > exposed APIs are

Re: RFR: 8285306: Fix typos in java.desktop [v3]

2022-05-13 Thread Magnus Ihse Bursie
On Thu, 28 Apr 2022 16:48:04 GMT, Alexey Ivanov wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with four >> additional commits since the last revision: >> >> - Update src/java.desktop/share/classes/javax/swing/JLayeredPane.java >> >>Co-authored-by: Alexey Ivano

Re: RFR: 8285306: Fix typos in java.desktop [v3]

2022-05-13 Thread Magnus Ihse Bursie
> I ran `codespell` on the `src/java.desktop` directory, and accepted those > changes where it indeed discovered real typos. > > I ignored typos in public methods and variables. Maybe they can be fixed > later on without much fanfare, if they are in internal classes. Typos in > exposed APIs are

Re: RFR: 8285306: Fix typos in java.desktop [v4]

2022-05-13 Thread Magnus Ihse Bursie
> I ran `codespell` on the `src/java.desktop` directory, and accepted those > changes where it indeed discovered real typos. > > I ignored typos in public methods and variables. Maybe they can be fixed > later on without much fanfare, if they are in internal classes. Typos in > exposed APIs are

Re: RFR: 8285306: Fix typos in java.desktop [v5]

2022-05-13 Thread Magnus Ihse Bursie
> I ran `codespell` on the `src/java.desktop` directory, and accepted those > changes where it indeed discovered real typos. > > I ignored typos in public methods and variables. Maybe they can be fixed > later on without much fanfare, if they are in internal classes. Typos in > exposed APIs are

Re: RFR: 8285306: Fix typos in java.desktop [v6]

2022-05-13 Thread Magnus Ihse Bursie
> I ran `codespell` on the `src/java.desktop` directory, and accepted those > changes where it indeed discovered real typos. > > I ignored typos in public methods and variables. Maybe they can be fixed > later on without much fanfare, if they are in internal classes. Typos in > exposed APIs are

Re: RFR: 8285306: Fix typos in java.desktop [v6]

2022-05-13 Thread Magnus Ihse Bursie
On Thu, 28 Apr 2022 20:37:22 GMT, Alexey Ivanov wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with 17 >> additional commits since the last revision: >> >> - Update src/java.desktop/windows/classes/sun/awt/windows/WPrinterJob.java >> >>Co-authored-by: Alexey Iv

Re: RFR: 8285306: Fix typos in java.desktop [v6]

2022-05-13 Thread Magnus Ihse Bursie
On Thu, 28 Apr 2022 21:25:02 GMT, Alexey Ivanov wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with 17 >> additional commits since the last revision: >> >> - Update src/java.desktop/windows/classes/sun/awt/windows/WPrinterJob.java >> >>Co-authored-by: Alexey Iv

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v8]

2022-05-13 Thread Harshitha Onkar
> In Windows, when desktop scaling is changed the tray icons was > distorted/blurred a bit each time scaling changes. > > With the proposed fix, the tray icon scales according to on-the-fly DPI scale > settings. A test case has been added which adds a MRI icon to system tray, to > observe the i

Re: RFR: 8285306: Fix typos in java.desktop [v6]

2022-05-13 Thread Alexey Ivanov
On Fri, 13 May 2022 16:53:31 GMT, Magnus Ihse Bursie wrote: >> Nearly 500 files are too many. Smaller chunks would be easier to review. >> >> Some of the native code files could come from upstream libraries. > > @aivanov-jdk While I approve of finding and fixing spelling mistakes, > grammatical

Re: RFR: 8286266: [macos] Voice over moving JTable column to be the first column JVM crashes [v2]

2022-05-13 Thread Alexander Zuev
> Moving cache invalidation from the clearCache method to a createRowWithIndex > method > eliminating race condition that causes crash. Now clearCache just notifies > that cache > is invalid and should be regenerated next time it is being accessed. Alexander Zuev has updated the pull request inc

Re: RFR: 8286266: [macos] Voice over moving JTable column to be the first column JVM crashes

2022-05-13 Thread Alexander Zuev
On Wed, 11 May 2022 10:03:59 GMT, Artem Semenov wrote: > If possible, please add this case to the regression test > > test/jdk/java/awt/a11y/AccessibleJTableTest.java Done. - PR: https://git.openjdk.java.net/jdk/pull/8636

Re: RFR: 8285306: Fix typos in java.desktop [v6]

2022-05-13 Thread Alexey Ivanov
On Fri, 13 May 2022 16:48:35 GMT, Magnus Ihse Bursie wrote: >> src/java.desktop/share/classes/sun/swing/text/TextComponentPrintable.java >> line 772: >> >>> 770: /* >>> 771: * we do not store the same value as previous. >>> in our >>> 772:

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v8]

2022-05-13 Thread Kevin Rushforth
On Fri, 13 May 2022 18:01:47 GMT, Harshitha Onkar wrote: >> In Windows, when desktop scaling is changed the tray icons was >> distorted/blurred a bit each time scaling changes. >> >> With the proposed fix, the tray icon scales according to on-the-fly DPI >> scale settings. A test case has been

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v8]

2022-05-13 Thread Kevin Rushforth
On Fri, 13 May 2022 18:01:47 GMT, Harshitha Onkar wrote: >> In Windows, when desktop scaling is changed the tray icons was >> distorted/blurred a bit each time scaling changes. >> >> With the proposed fix, the tray icon scales according to on-the-fly DPI >> scale settings. A test case has been

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v8]

2022-05-13 Thread Harshitha Onkar
On Fri, 13 May 2022 18:07:02 GMT, Kevin Rushforth wrote: >> Harshitha Onkar has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 11 additional >> com

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v8]

2022-05-13 Thread Alexey Ivanov
On Fri, 13 May 2022 18:08:23 GMT, Kevin Rushforth wrote: >> Harshitha Onkar has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 11 additional >> com

Re: RFR: 8285306: Fix typos in java.desktop

2022-05-13 Thread Alexey Ivanov
On Wed, 27 Apr 2022 03:38:09 GMT, Phil Race wrote: > Please exclude ALL 3rd party libraries from this PR. Are these the only files to be excluded? src/java.desktop/share/native/libfreetype/src/autofit/afcjk.c src/java.desktop/share/native/libfreetype/src/autofit/aflatin.c src/java.desktop/shar

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v8]

2022-05-13 Thread Kevin Rushforth
On Fri, 13 May 2022 19:16:52 GMT, Alexey Ivanov wrote: >> src/java.desktop/windows/classes/sun/awt/windows/WTrayIconPeer.java line 2: >> >>> 1: /* >>> 2: * Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights >>> reserved. >> >> You can revert this file, since the only remaining

Re: RFR: 8257810: Only First page are printed in JTable.scrollRectToVisible [v12]

2022-05-13 Thread Alexey Ivanov
On Thu, 12 May 2022 04:09:29 GMT, Prasanta Sadhukhan wrote: >> Issue was when printing a JTable which sits inside a JScrollPane and the >> table is scrolled down to the end to about 1000th row, only the first page >> is printed. >> This is because when the table is scrolled down to last page,

Re: RFR: 8257810: Only First page are printed in JTable.scrollRectToVisible [v11]

2022-05-13 Thread Alexey Ivanov
On Thu, 12 May 2022 04:05:48 GMT, Prasanta Sadhukhan wrote: >> test/jdk/javax/swing/JTable/PrintAllPagesTest.java line 80: >> >>> 78: try { >>> 79: if (!table.print()) { >>> 80: throw new RuntimeException("Printing cancelled"); >> >> When run out

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v8]

2022-05-13 Thread Alexey Ivanov
On Fri, 13 May 2022 19:28:26 GMT, Kevin Rushforth wrote: >> I'm for keeping the expanded imports in WTrayIconPeer.java, even it's the >> only change left now. >> >> I'd probably remove the unused import from `TrayIcon.java` too. However, the >> change in this case is too minor. > > My preferen

Integrated: 6829250: Reg test: java/awt/Toolkit/ScreenInsetsTest/ScreenInsetsTest.java fails in Windows

2022-05-13 Thread Alexander Zuev
On Wed, 20 Apr 2022 05:10:23 GMT, Alexander Zuev wrote: > Only check that insets of the fully expanded undecorated window is not bigger > than device insets. They can be smaller, it is a normal situation. This pull request has now been integrated. Changeset: f56396f1 Author:Alexander Zuev

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v8]

2022-05-13 Thread Phil Race
On Fri, 13 May 2022 18:01:47 GMT, Harshitha Onkar wrote: >> In Windows, when desktop scaling is changed the tray icons was >> distorted/blurred a bit each time scaling changes. >> >> With the proposed fix, the tray icon scales according to on-the-fly DPI >> scale settings. A test case has been

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

2022-05-13 Thread Phil Race
On Mon, 9 May 2022 20:42:05 GMT, Alexey Ivanov wrote: > This should be the first statement in main. If icons aren't supported, > there's no need to create the instruction frame. The test will still wait for > user's response but no tray icon is added. It won't wait if you haven't created it ..

Re: RFR: 8190907: Windows 10 default Korean Font Malgun Gothic available not used by GUI elements even though available without Korean Language Pack [v4]

2022-05-13 Thread Phil Race
On Wed, 16 Mar 2022 06:02:28 GMT, Prasanta Sadhukhan wrote: >> Malgun_Gothic(https://en.wikipedia.org/wiki/Malgun_Gothic) had replaced >> Gulim korean font so it needs to be updated to show korean fonts > > Prasanta Sadhukhan has updated the pull request incrementally with one > additional com

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v8]

2022-05-13 Thread Harshitha Onkar
On Fri, 13 May 2022 22:04:39 GMT, Phil Race wrote: >> Harshitha Onkar has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 11 additional >> commits s

Re: RFR: 8233477 [Win LAF]The tooltip doesn't display correctly in Win LAF [v4]

2022-05-13 Thread Phil Race
On Thu, 12 May 2022 07:25:22 GMT, Tejesh R wrote: >> In Button ToolTip, Mnemonic key string was shown only in Metal Look and >> Feel, since the feature is implemented in it. In other L&F especially >> Windows L&F the feature is not available. In order to make it available for >> other L&F's, t

Re: RFR: 7131823: bug in GIFImageReader [v3]

2022-05-13 Thread Sergey Bylokhov
On Wed, 27 Apr 2022 22:10:43 GMT, Dan Lutker wrote: >> …xception: Index 4096 out of bounds for length 4096 >> >> Adapted from >> https://github.com/openjdk/jfx/commit/7b7050c46299c0e6771ae02fbb5ceaf22104d3e4 >> >> # Testing done >> Build locally on linux and ran jdk_imageio tests. > > Dan Lutk

Re: RFR: 8282863: java/awt/FullScreen/FullscreenWindowProps/FullscreenWindowProps.java fails on Windows 10 with HiDPI screen [v3]

2022-05-13 Thread Sergey Bylokhov
On Wed, 4 May 2022 07:48:17 GMT, Dmitry Kulikov wrote: >> Hello, >> Please review this fix for JDK-8282863. >> >> The failing >> `java/awt/FullScreen/FullscreenWindowProps/FullscreenWindowProps.java` test >> basically checks that full-screen window remains full-screen when a display >> mode c

Re: RFR: 6829250: Reg test: java/awt/Toolkit/ScreenInsetsTest/ScreenInsetsTest.java fails in Windows

2022-05-13 Thread Sergey Bylokhov
On Wed, 20 Apr 2022 05:10:23 GMT, Alexander Zuev wrote: > Only check that insets of the fully expanded undecorated window is not bigger > than device insets. They can be smaller, it is a normal situation. That a mistake to consider that as a correct behavior even based on the amount of bugs we