Re: RFR: 4365952: Cannot disable JFileChooser

2022-12-06 Thread Prasanta Sadhukhan
On Wed, 7 Dec 2022 05:48:57 GMT, Tejesh R wrote: > Disable functionality not working for JFileChooser. `public void > setEnabled(boolean enabled)` functionality is overridden in JFileChooser > class which enable/disable each sub-component of FileChooser. > The added functionality is tested in

Re: RFR: 8296812: sprintf is deprecated in Xcode 14 [v17]

2022-12-06 Thread Yichen Yan
On Tue, 29 Nov 2022 07:57:36 GMT, Xue-Lei Andrew Fan wrote: >> Hi, >> >> May I have this update reviewed? >> >> The sprintf is deprecated in Xcode 14 because of security concerns, and the >> use of it causing building failure. The build could pass if warnings are >> disabled for codes that u

Re: RFR: 8282578: AIOOBE in javax.sound.sampled.Clip [v2]

2022-12-06 Thread Alexander Zuev
On Sun, 4 Dec 2022 22:17:55 GMT, Alexander Zuev wrote: >> Add try/catch clause to ignore an exception since it is harmless for we >> isolated >> the massge data before passing it ro processor. >> Add test case. > > Alexander Zuev has updated the pull request with a new target base due to a > me

RFR: 4365952: Cannot disable JFileChooser

2022-12-06 Thread Tejesh R
Disable functionality not working for JFileChooser. `public void setEnabled(boolean enabled)` functionality is overridden in JFileChooser class which enable/disable each sub-component of FileChooser. The added functionality is tested in mach5 and no regression found. The fix includes automated

Re: RFR: 8298006: Build failure by maybe-uninitialized error on Linux s390x GCC8

2022-12-06 Thread Ichiroh Takiguchi
On Tue, 6 Dec 2022 18:24:17 GMT, Phil Race wrote: >>> src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c: In >>> function 'allocateRasterArray': >>> src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:2944:73: >>> error: 'roff[3]' may be used uninitialized in this

RFR: 8244400: MenuItem may cache the size and did not update it when the screen DPI is changed

2022-12-06 Thread Prasanta Sadhukhan
The MenuItemLayoutHelper.clearUsedParentClientProperties must be called automatically when the DPI was changed. Workaround added in the test for this bug is removed. CI tests are ok. - Commit messages: - 8244400: MenuItem may cache the size and did not update it when the screen D

Re: RFR: 8298006: Build failure by maybe-uninitialized error on Linux s390x GCC8 [v2]

2022-12-06 Thread Ichiroh Takiguchi
> I changed GCC toolchain from GCC6 to GCC8 on SLES12SP5 Linux s390x. > I could see following errors: > > src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c: In > function 'allocateRasterArray': > src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:2944:73: > error

Re: RFR: 8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set. [v4]

2022-12-06 Thread Phil Race
On Tue, 6 Dec 2022 23:06:25 GMT, Olga Mikhaltsova wrote: >> test/jdk/java/awt/font/LineBreakMeasurer/LineBreakWithTracking.java line 50: >> >>> 48: >>> 49: private float textTracking = 0.0f; >>> 50: private static String fontName = "Bitstream Cyberbit"; >> >> Did you previously use this f

Re: RFR: 8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set. [v4]

2022-12-06 Thread Olga Mikhaltsova
On Tue, 6 Dec 2022 22:26:38 GMT, Phil Race wrote: >> Olga Mikhaltsova has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Deleted trailing whitespaces, added new line at the end > > test/jdk/java/awt/font/LineBreakMeasurer/LineBreakWithTrack

Re: RFR: 8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set. [v4]

2022-12-06 Thread Phil Race
On Tue, 6 Dec 2022 22:13:47 GMT, Olga Mikhaltsova wrote: >> This is a fix for LineBreakMeasurer. It takes into account the >> TextAttribute.TRACKING value (not eq 0) while calculating the line breaks. >> >> Tested on Linux x64, Windows x64, macOS x64 with the reproducer >> (LineBreakSample.ja

Re: RFR: 8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set. [v2]

2022-12-06 Thread Olga Mikhaltsova
On Thu, 1 Dec 2022 20:16:19 GMT, Phil Race wrote: >> Olga Mikhaltsova has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Fix tracking for CJK, Arabic and Hebrew >> - Manual test > > test/jdk/java/awt/font/LineBreakMeasurer/LineBreakWithT

Re: RFR: 8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set. [v4]

2022-12-06 Thread Olga Mikhaltsova
> This is a fix for LineBreakMeasurer. It takes into account the > TextAttribute.TRACKING value (not eq 0) while calculating the line breaks. > > Tested on Linux x64, Windows x64, macOS x64 with the reproducer > (LineBreakSample.java) attached to JDK-8165943 and the following group of > tests:

Re: RFR: 8297296: java/awt/Mouse/EnterExitEvents/DragWindowTest.java fails with "No MouseReleased event on label!" [v3]

2022-12-06 Thread Alisen Chung
On Mon, 5 Dec 2022 19:52:00 GMT, Alisen Chung wrote: >> Test was run on mac, windows, linux 50 times and passed after change >> Before fix, test fails about once every 50 runs on linux and windows >> platforms > > Alisen Chung has updated the pull request with a new target base due to a > merge

Integrated: 8298214: ProblemList java/util/concurrent/forkjoin/AsyncShutdownNow.java

2022-12-06 Thread Daniel D . Daugherty
On Tue, 6 Dec 2022 21:38:45 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList 4 different tests: > [JDK-8298214](https://bugs.openjdk.org/browse/JDK-8298214) ProblemList > java/util/concurrent/forkjoin/AsyncShutdownNow.java > [JDK-8298218](https://bugs.openjdk.org/browse/JDK-8298218

Re: RFR: 4668290: unclear spec for Polygon.bounds field [v4]

2022-12-06 Thread Phil Race
On Tue, 6 Dec 2022 21:33:33 GMT, SWinxy wrote: >> New documentation replaces the `This value can be null.`: >> >> When created, {@link #invalidate() invalidated}, or {@link #reset() reset}, >> this becomes {@code null}. To get out of the null state, >> {@link #getBounds()} called with {@link #np

Re: RFR: 4668290: unclear spec for Polygon.bounds field [v4]

2022-12-06 Thread SWinxy
> New documentation replaces the `This value can be null.`: > > When created, {@link #invalidate() invalidated}, or {@link #reset() reset}, > this becomes {@code null}. To get out of the null state, > {@link #getBounds()} called with {@link #npoints} being greater than > {@code 0} will transfer in

Re: RFR: 8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set. [v3]

2022-12-06 Thread Olga Mikhaltsova
On Tue, 6 Dec 2022 21:21:59 GMT, Olga Mikhaltsova wrote: >> This is a fix for LineBreakMeasurer. It takes into account the >> TextAttribute.TRACKING value (not eq 0) while calculating the line breaks. >> >> Tested on Linux x64, Windows x64, macOS x64 with the reproducer >> (LineBreakSample.ja

Re: RFR: 8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set. [v3]

2022-12-06 Thread Olga Mikhaltsova
> This is a fix for LineBreakMeasurer. It takes into account the > TextAttribute.TRACKING value (not eq 0) while calculating the line breaks. > > Tested on Linux x64, Windows x64, macOS x64 with the reproducer > (LineBreakSample.java) attached to JDK-8165943 and the following group of > tests:

Re: RFR: 8297296: java/awt/Mouse/EnterExitEvents/DragWindowTest.java fails with "No MouseReleased event on label!" [v3]

2022-12-06 Thread Alisen Chung
On Mon, 5 Dec 2022 04:11:16 GMT, Prasanta Sadhukhan wrote: >> test/jdk/java/awt/Mouse/EnterExitEvents/DragWindowTest.java line 58: >> >>> 56: >>> 57: Robot robot = new Robot(); >>> 58: robot.setAutoDelay(250); >> >> We normally do not need so much delay for test to work, 100ms

Re: RFR: JDK-8298170 : Introduce a macro for exception check, free and return

2022-12-06 Thread Roger Riggs
On Tue, 6 Dec 2022 15:20:26 GMT, Matthias Baesken wrote: > We have a number of places in the codebase where a macro could help when we > check an exception and afterwrads free something and return. The existing (and new) macro naming doesn't make clear that it always returns from the function

Re: RFR: 4668290: unclear spec for Polygon.bounds field [v3]

2022-12-06 Thread Alexey Ivanov
On Fri, 30 Sep 2022 21:18:45 GMT, Phil Race wrote: >> SWinxy has updated the pull request incrementally with one additional commit >> since the last revision: >> >> Use javadoc code syntax for null > > src/java.desktop/share/classes/java/awt/Polygon.java line 111: > >> 109: * {@link #ge

Re: RFR: 4668290: unclear spec for Polygon.bounds field [v3]

2022-12-06 Thread Alexey Ivanov
On Tue, 6 Dec 2022 01:18:24 GMT, SWinxy wrote: >> New documentation replaces the `This value can be null.`: >> >> When created, {@link #invalidate() invalidated}, or {@link #reset() reset}, >> this becomes {@code null}. To get out of the null state, >> {@link #getBounds()} called with {@link #np

Re: RFR: JDK-8266245: AWT Test FullScreenInsets.java fails due to incorrect pixel color and wrong window bounds [v2]

2022-12-06 Thread Harshitha Onkar
On Mon, 5 Dec 2022 22:10:15 GMT, Harshitha Onkar wrote: >> The above test was failing due to incorrect pixel color and wrong window >> bounds on Mac-ARM, Windows and Linux platforms. >> >> The following changes have been made: >> - Correct window bounds are obtained using the current ScreenDevi

Integrated: 8297450: ScaledTextFieldBorderTest.java fails when run with -show parameter

2022-12-06 Thread Rajat Mahajan
On Sat, 3 Dec 2022 22:11:47 GMT, Rajat Mahajan wrote: > The test is failing because there was no gap between the Textfields. > I fixed it by adding Vertical Struts in between Textfields. This pull request has now been integrated. Changeset: ea83cb96 Author:Rajat Mahajan Committer: Harshith

Re: RFR: JDK-8298170 : Introduce a macro for exception check, free and return

2022-12-06 Thread Phil Race
On Tue, 6 Dec 2022 15:20:26 GMT, Matthias Baesken wrote: > We have a number of places in the codebase where a macro could help when we > check an exception and afterwrads free something and return. I'm OK with the idea and the specific desktop change. I'll leave the rest to the appropriate com

Re: RFR: 8298006: Build failure by maybe-uninitialized error on Linux s390x GCC8

2022-12-06 Thread Phil Race
On Mon, 5 Dec 2022 18:22:15 GMT, Phil Race wrote: >> I changed GCC toolchain from GCC6 to GCC8 on SLES12SP5 Linux s390x. >> I could see following errors: >> >> src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c: In >> function 'allocateRasterArray': >> src/java.desktop/share/nat

RFR: JDK-8298170 : Introduce a macro for exception check, free and return

2022-12-06 Thread Matthias Baesken
We have a number of places in the codebase where a macro could help when we check an exception and afterwrads free something and return. - Commit messages: - JDK-8298170 Changes: https://git.openjdk.org/jdk/pull/11539/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11539&r

Re: RFR: 8298006: Build failure by maybe-uninitialized error on Linux s390x GCC8

2022-12-06 Thread Ichiroh Takiguchi
On Mon, 5 Dec 2022 18:22:15 GMT, Phil Race wrote: >> I changed GCC toolchain from GCC6 to GCC8 on SLES12SP5 Linux s390x. >> I could see following errors: >> >> src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c: In >> function 'allocateRasterArray': >> src/java.desktop/share/nat

Re: RFR: 4512626: Non-editable JTextArea provides no visual indication of keyboard focus [v2]

2022-12-06 Thread Alexander Zuev
On Tue, 6 Dec 2022 02:11:19 GMT, Sergey Bylokhov wrote: > I think that using the VoiceOver or JAWS will highlight the currently focused > component since we should send that information to them, no? That paragraph consists of two statements - first is that focus should be visible and one can t

Re: RFR: 4512626: Non-editable JTextArea provides no visual indication of keyboard focus

2022-12-06 Thread Alexander Zuev
On Tue, 6 Dec 2022 02:00:44 GMT, Sergey Bylokhov wrote: > The library provides a way to set different cursors and the application may > use that The library does not provide an ability to set caret to visible permanently in case of text component being non-editable. Every time focus will chang

Re: RFR: 8296198: JFileChooser throws InternalError java.lang.InternalError with Windows shortcuts [v2]

2022-12-06 Thread Tejesh R
> When `JFileChooser` uses custom `FileSystemView`, traversing to link/shortcut > to a folder throw `InternalError java.lang.InternalError ` in Windows. The > issue found out to be in BasicFileChooserUI class which was unable to resolve > the link path during directory setting. The `UsesShellFol

Re: RFR: 8296198: JFileChooser throws InternalError java.lang.InternalError with Windows shortcuts [v2]

2022-12-06 Thread Tejesh R
On Tue, 6 Dec 2022 09:32:18 GMT, Sergey Bylokhov wrote: >> Tejesh R has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Updated based on review Comments > > src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java > lin

Re: RFR: 8296198: JFileChooser throws InternalError java.lang.InternalError with Windows shortcuts [v2]

2022-12-06 Thread Tejesh R
On Tue, 6 Dec 2022 10:02:21 GMT, Abhishek Kumar wrote: >> Tejesh R has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Updated based on review Comments > > test/jdk/javax/swing/JFileChooser/FileSystemView/CustomFSVLinkTest.java line > 131:

Re: RFR: JDK-8266245: AWT Test FullScreenInsets.java fails due to incorrect pixel color and wrong window bounds [v2]

2022-12-06 Thread Sergey Bylokhov
On Tue, 6 Dec 2022 06:14:56 GMT, Harshitha Onkar wrote: >> test/jdk/java/awt/FullScreen/FullScreenInsets/FullScreenInsets.java line 44: >> >>> 42: * @bug 8003173 7019055 >>> 43: * @summary Full-screen windows should have the proper insets. >>> 44: * @requires (os.family != "linux") >> >> You

Re: RFR: 8296198: JFileChooser throws InternalError java.lang.InternalError with Windows shortcuts

2022-12-06 Thread Abhishek Kumar
On Mon, 5 Dec 2022 11:35:11 GMT, Tejesh R wrote: > When `JFileChooser` uses custom `FileSystemView`, traversing to link/shortcut > to a folder throw `InternalError java.lang.InternalError ` in Windows. The > issue found out to be in BasicFileChooserUI class which was unable to resolve > the li

Re: RFR: JDK-8298093: improve cleanup and error handling of awt_parseColorModel in awt_parseImage.c [v2]

2022-12-06 Thread Matthias Baesken
On Mon, 5 Dec 2022 22:01:44 GMT, Phil Race wrote: >> Matthias Baesken has updated the pull request incrementally with one >> additional commit since the last revision: >> >> move freeing into awt_parseColorModel > > src/java.desktop/share/native/libawt/awt/image/awt_parseImage.c line 104: >

Re: RFR: JDK-8298093: improve cleanup and error handling of awt_parseColorModel in awt_parseImage.c [v2]

2022-12-06 Thread Matthias Baesken
> The cleanup and error handling in function awt_parseColorModel in > awt_parseImage.c could be improved. Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision: move freeing into awt_parseColorModel - Changes: - all: htt

Withdrawn: 8292588: [macos] Multiscreen/MultiScreenLocationTest/MultiScreenLocationTest.java: Robot.mouseMove test failed on Screen #0

2022-12-06 Thread duke
On Tue, 20 Sep 2022 18:24:26 GMT, Alisen Chung wrote: > Fixed test bug where mouse location was being calculated before robot > mouseMove operation was complete This pull request has been closed without being integrated. - PR: https://git.openjdk.org/jdk/pull/10363

Re: RFR: 8296198: JFileChooser throws InternalError java.lang.InternalError with Windows shortcuts

2022-12-06 Thread Sergey Bylokhov
On Mon, 5 Dec 2022 11:35:11 GMT, Tejesh R wrote: > When `JFileChooser` uses custom `FileSystemView`, traversing to link/shortcut > to a folder throw `InternalError java.lang.InternalError ` in Windows. The > issue found out to be in BasicFileChooserUI class which was unable to resolve > the li