Re: RFR: 8281284 : Write JSlider accessibility test [v5]

2022-03-04 Thread Artem Semenov
On Thu, 3 Mar 2022 17:11:39 GMT, lawrence.andrews wrote: >> This testcase covers both old and new api ( api added in jdk17 >> getAccessibleAction(), getAccessibleActionCount() , >> getAccessibleActionDescription ) >> >> @shurymury >> @savoptik > > lawrence.andrews has updated the pull reques

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

2022-03-04 Thread Dmitry Batrak
On Fri, 4 Mar 2022 05:07:44 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 comm

Re: RFR: 8015854: [macosx] JButton's HTML ImageView adding unwanted padding [v10]

2022-03-04 Thread Alexey Ivanov
On Thu, 3 Mar 2022 22:51:48 GMT, DamonGuy wrote: >> Html does not fit in JButton at certain sizes because default Insets cause >> html to be displayed off-center. >> >> Changes made to SwingUtilities.java layoutCompoundLabelImpl method to enable >> clipping if html does not fit, similar to re

Re: RFR: 8015854: [macosx] JButton's HTML ImageView adding unwanted padding [v10]

2022-03-04 Thread Prasanta Sadhukhan
On Thu, 3 Mar 2022 22:51:48 GMT, DamonGuy wrote: >> Html does not fit in JButton at certain sizes because default Insets cause >> html to be displayed off-center. >> >> Changes made to SwingUtilities.java layoutCompoundLabelImpl method to enable >> clipping if html does not fit, similar to re

Re: RFR: 8282343: Create a regression test for JDK-4518432 [v2]

2022-03-04 Thread Alexey Ivanov
On Fri, 4 Mar 2022 01:55:45 GMT, Manukumar V S wrote: >> Create a regression test for >> [JDK-4518432](https://bugs.openjdk.java.net/browse/JDK-4518432). >> >> Issue: Copying from JTree and then changing the data in the component that >> was copied from, can cause pastes to use >>

Integrated: 8282343: Create a regression test for JDK-4518432

2022-03-04 Thread Manukumar V S
On Thu, 24 Feb 2022 11:46:58 GMT, Manukumar V S wrote: > Create a regression test for > [JDK-4518432](https://bugs.openjdk.java.net/browse/JDK-4518432). > > Issue: Copying from JTree and then changing the data in the component that > was copied from, can cause pastes to use >the n

RFR: 8282628: Potential memory leak in sun.font.FontConfigManager.getFontConfig()

2022-03-04 Thread Zhengyu Gu
Please review this small patch that fixes a potential memory leak that exception return fails to release allocated `cacheDirs` Test: - [x] jdk_desktop on Linux x86_64 - Commit messages: - 8282628: Potential memory leak in sun.font.FontConfigManager.getFontConfig() Changes: https:

Re: RFR: 8282628: Potential memory leak in sun.font.FontConfigManager.getFontConfig()

2022-03-04 Thread Thomas Stuefe
On Fri, 4 Mar 2022 13:25:12 GMT, Zhengyu Gu wrote: > Please review this small patch that fixes a potential memory leak that > exception return fails to release allocated `cacheDirs` > > Test: > > - [x] jdk_desktop on Linux x86_64 Looks good. - Marked as reviewed by stuefe (Revie

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Matteo Baccan
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo Hi I have pushed this PR about 1 month ago. Only 3 days ago OCA was accepted. Now: what is the next step? This is a cleanup PR

RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Matteo Baccan
Hi I have reviewed the code for removing double semicolons at the end of lines all the best matteo - Commit messages: - Removed double semicolon at the end of lines Changes: https://git.openjdk.java.net/jdk/pull/7268/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=726

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Julian Waters
On Fri, 25 Feb 2022 15:40:09 GMT, Matteo Baccan wrote: >> Hi >> >> I have reviewed the code for removing double semicolons at the end of lines >> >> all the best >> matteo > > Hi > > I have pushed this PR about 1 month ago. Only 3 days ago OCA was accepted. > Now: what is the next step? > > T

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Lance Andersen
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo The changes look OK. The copyright year probably should be updated as part of this PR - Marked as reviewed by la

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Matteo Baccan
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo Hi Lance I can make a second commit updating the copyright year Tell me if this is necessary ciao matteo - PR:

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Roger Riggs
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo We usually request that these be be broken up by area to attract the appropriate reviewers and avoid eye-strain. The client mo

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

2022-03-04 Thread Naoto Sato
On Thu, 3 Mar 2022 18:07:25 GMT, Phil Race wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add bold version > > make/data/fontconfig/windows.fontconfig.properties line 184: > >> 182: dialoginput.bold.japanes

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

2022-03-04 Thread Naoto Sato
On Fri, 4 Mar 2022 05:07:44 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 comm

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Magnus Ihse Bursie
On Fri, 4 Mar 2022 17:17:12 GMT, Roger Riggs wrote: >> Hi >> >> I have reviewed the code for removing double semicolons at the end of lines >> >> all the best >> matteo > > We usually request that these be be broken up by area to attract the > appropriate reviewers and avoid eye-strain. The c

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

2022-03-04 Thread Phil Race
On Fri, 4 Mar 2022 05:07:44 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 comm

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

2022-03-04 Thread Naoto Sato
On Fri, 4 Mar 2022 18:16:22 GMT, Phil Race wrote: > allfonts.korean=Malgun Gothic will provide it as a fall back so I don't see > the need. OK, that's what I needed. Thanks. - PR: https://git.openjdk.java.net/jdk/pull/7643

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

2022-03-04 Thread Phil Race
On Fri, 4 Mar 2022 05:07:44 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 comm

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Phil Race
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo Marked as reviewed by prr (Reviewer). Looks like there's only one client source code file touched Most of the client changes a

Re: RFR: 8282473: Refactor swing classes javadoc to use @throws instead of @exception

2022-03-04 Thread Phil Race
On Tue, 1 Mar 2022 10:16:16 GMT, Prasanta Sadhukhan wrote: > Prevailing JDK coding practices use "@throws" rather than "@exception". > Refactor existing swing classes javadoc to use @throws This is touching a lot of files but I can't see it interfering with clean backports as we are very unlik

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

2022-03-04 Thread Naoto Sato
On Fri, 4 Mar 2022 05:07:44 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 comm

Re: RFR: 8282602: Refactor awt classes javadoc to use @throws instead of @exception

2022-03-04 Thread Alexey Ivanov
On Thu, 3 Mar 2022 12:26:19 GMT, Prasanta Sadhukhan wrote: > Prevailing JDK coding practices use "@throws" rather than "@exception". > Refactor existing java/awt classes javadoc to use @throws Marked as reviewed by aivanov (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/76

Integrated: 8015854: [macosx] JButton's HTML ImageView adding unwanted padding

2022-03-04 Thread DamonGuy
On Tue, 1 Feb 2022 16:11:52 GMT, DamonGuy wrote: > Html does not fit in JButton at certain sizes because default Insets cause > html to be displayed off-center. > > Changes made to SwingUtilities.java layoutCompoundLabelImpl method to enable > clipping if html does not fit, similar to regular

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Roger Riggs
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo Marked as reviewed by rriggs (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/7268

Re: RFR: 8282628: Potential memory leak in sun.font.FontConfigManager.getFontConfig()

2022-03-04 Thread Phil Race
On Fri, 4 Mar 2022 13:25:12 GMT, Zhengyu Gu wrote: > Please review this small patch that fixes a potential memory leak that > exception return fails to release allocated `cacheDirs` > > Test: > > - [x] jdk_desktop on Linux x86_64 I've increased the number of reviewers because as well as the c

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Iris Clark
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo Nice tidy of the code. Is there anything that can be done to prevent re-introduction of this trivial problem? Perhaps a new S

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Bradford Wetmore
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo LGTM also. Similar suggestion for updating copyrights. - Marked as reviewed by wetmore (Reviewer). PR: https:/

Re: RFR: 8015854: [macosx] JButton's HTML ImageView adding unwanted padding [v8]

2022-03-04 Thread Alexey Ivanov
On Tue, 1 Mar 2022 23:33:40 GMT, DamonGuy wrote: > There is no new bug submitted yet for other LAFs that I know of. I tested > other LAFs and the issue does persist, so I can submit the bug for them if > necessary. The other LAFs I tested were Metal, Nimbus, and Motif. Please, submit a new bug

Re: RFR: 8282602: Refactor awt classes javadoc to use @throws instead of @exception

2022-03-04 Thread Phil Race
On Thu, 3 Mar 2022 12:26:19 GMT, Prasanta Sadhukhan wrote: > Prevailing JDK coding practices use "@throws" rather than "@exception". > Refactor existing java/awt classes javadoc to use @throws Marked as reviewed by prr (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/7675

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

2022-03-04 Thread Phil Race
On Fri, 4 Mar 2022 05:07:44 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 comm

Re: RFR: 8282422: JTable.print() failed with UnsupportedCharsetException on AIX ko_KR locale

2022-03-04 Thread Phil Race
On Sat, 26 Feb 2022 16:24:07 GMT, Ichiroh Takiguchi wrote: > On AIX ko_KR locale, I could see following exception after JTable.print() was > called > > java.nio.charset.UnsupportedCharsetException: sun.font.X11KSC5601 > at java.base/java.nio.charset.Charset.forName(Charset.java:527) >

Re: RFR: 8282270: java/awt/Robot Screen Capture tests fail after 8280861 [v2]

2022-03-04 Thread Phil Race
On Mon, 28 Feb 2022 14:54:19 GMT, Maxim Kartashev wrote: >> The two tests `ScreenCaptureGtkTest.java` and >> `HiDPIRobotScreenCaptureTest.java` under `java/awt/Robot/HiDPIScreenCapture` >> started to intermittently fail under Windows and Linux after the [recent >> changes](https://github.com/o

Re: RFR: 6218162: DefaultTableColumnModel.getColumn() method should mention ArrayIndexOutOfBoundsException [v3]

2022-03-04 Thread Phil Race
On Mon, 28 Feb 2022 07:24:27 GMT, Prasanta Sadhukhan wrote: >> If invalid ie 0 or > getColumnCount() index is passed to >> DefaultTableColumnModel.getColumn() then it returns AIOBE in current >> implementation which should be documented in the spec. Fixed the spec to >> mention the exception.

Re: RFR: 7017094: ParsedSynthStyle: parameter name "direction" should be changed to "tabIndex"

2022-03-04 Thread Phil Race
On Mon, 21 Feb 2022 04:59:34 GMT, Prasanta Sadhukhan wrote: > [SynthPainter](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthPainter.java#L1759) > and > [SynthPainterImpl](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/cla

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Joe Darcy
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo Marked as reviewed by darcy (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/7268

Re: RFR: 8282628: Potential memory leak in sun.font.FontConfigManager.getFontConfig()

2022-03-04 Thread David Holmes
On Fri, 4 Mar 2022 13:25:12 GMT, Zhengyu Gu wrote: > Please review this small patch that fixes a potential memory leak that > exception return fails to release allocated `cacheDirs` > > Test: > > - [x] jdk_desktop on Linux x86_64 I would have just inlined JNU_CHECK_EXCEPTION and added the cle

Re: RFR: 8279614: The left line of the TitledBorder is not painted on 150 scale factor [v2]

2022-03-04 Thread Phil Race
On Fri, 4 Mar 2022 00:49:39 GMT, Alisen Chung wrote: >> Changed the drawing area to be increased by 0.5 on the left side to prevent >> clipping > > Alisen Chung has updated the pull request incrementally with three additional > commits since the last revision: > > - adjusted pixels to check f

Re: RFR: 8282628: Potential memory leak in sun.font.FontConfigManager.getFontConfig()

2022-03-04 Thread Zhengyu Gu
On Fri, 4 Mar 2022 21:30:53 GMT, David Holmes wrote: > I would have just inlined JNU_CHECK_EXCEPTION and added the cleanup code > directly. The additional macro wasn't really necessary and would not really > be usable for any kind of general cleanup actions beyond a one-liner. > > But it is ok

Re: RFR: 8176501: Method Shape.getBounds2D() incorrectly includes Bezier control points in bounding box [v12]

2022-03-04 Thread Jeremy
On Thu, 16 Dec 2021 18:33:37 GMT, Jeremy wrote: >> This removes code that relied on consulting the Bezier control points to >> calculate the Rectangle2D bounding box. Instead it's pretty straight-forward >> to convert the Bezier control points into the x & y parametric equations. At >> their m

Integrated: 8236907: JTable added to nested panels does not paint last visible row

2022-03-04 Thread Tejesh R
On Thu, 10 Feb 2022 09:49:41 GMT, Tejesh R wrote: > Issue in painting last row of JTable due to decrement in `MaxRow `during > computation. Differences in `MaxRow `computation between `TablePrintable` and > `BasicTableUI `class. The Bug is fixed in both the classes. Test Case added > to valida

Re: RFR: 8275715: D3D pipeline processes multiple PaintEvent at initial drawing [v2]

2022-03-04 Thread Phil Race
On Thu, 28 Oct 2021 08:27:44 GMT, Masanori Yano wrote: >> Could you please review the 8275715 bug fixes? >> >> I think D3DScreenUpdateManager posts unnecessary PaintEvent during >> processing PaintEvent. When the validate method is called from >> createGraphics, repaintPeerTarget should not be

Re: RFR: 8279614: The left line of the TitledBorder is not painted on 150 scale factor [v2]

2022-03-04 Thread Alisen Chung
On Fri, 4 Mar 2022 21:31:55 GMT, Phil Race wrote: > Can you explain (walk through) why the old code was wrong and the new code is > correct ? There's a lot of things that aren't obvious to me. The old code > would use the same coords and just toggle which parts were in > highlight/shadow Now y

Re: RFR: 8281284 : Write JSlider accessibility test [v5]

2022-03-04 Thread lawrence . andrews
On Fri, 4 Mar 2022 09:10:02 GMT, Artem Semenov wrote: >> lawrence.andrews has updated the pull request incrementally with one >> additional commit since the last revision: >> >> run the on windows and mac > > Looks good to me. I agree @savoptik , can you approve this PR so that this PR is el

Re: RFR: 8282628: Potential memory leak in sun.font.FontConfigManager.getFontConfig()

2022-03-04 Thread David Holmes
On Fri, 4 Mar 2022 21:54:57 GMT, Zhengyu Gu wrote: > The macros are used to hide the different syntax of c and c++ to avoid > polluting code here, it seems to be a common pattern in client code. That's to allow for general use by C or C++ source files. But you are only needing this in a C sour

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread David Holmes
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo I eyeballed the diff file and all seems okay. Thanks, David - Marked as reviewed by dholmes (Reviewer). PR: http

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Julian Waters
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo Nice, good work matteo Should I change the JBS issue title to match the PR title, or is it preferred for the PR title to chang

Re: RFR: 8282657: Code cleanup: removing double semicolons at the end of lines

2022-03-04 Thread Jan Schlößin
On Fri, 28 Jan 2022 14:39:31 GMT, Matteo Baccan wrote: > Hi > > I have reviewed the code for removing double semicolons at the end of lines > > all the best > matteo This PR changes a comment in javax/swing/RepaintManager.java. This commented out code should be removed altogether in another P