RFR: 8178698: javax/sound/midi/Sequencer/MetaCallback.java failed with timeout

2022-11-14 Thread Alexander Zuev
On m1 mac sometimes (in very rare instance) it takes a long time to get the sequencer so increasing timeout helps with that. Also on m1 mac sequencer got notified about the first MetaMessage twice. The reason is unclear but watching for that fixes the problem. Also on Linux sometimes process

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

2022-11-14 Thread Kim Barrett
On Mon, 14 Nov 2022 19:44:17 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

Re: RFR: 8293862: javax/swing/JFileChooser/8046391/bug8046391.java failed with 'Cannot invoke "java.awt.Image.getWidth(java.awt.image.ImageObserver)" because "retVal" is null'

2022-11-14 Thread Tejesh R
On Fri, 11 Nov 2022 08:18:19 GMT, Tejesh R wrote: > Observation found when JFileChooser is instantiated in WindowsLookAndFeel > which invokes getSystemIcon() from WindowsFileChooserUI class. Could not find > the exact root cause so predicting it to be an issue with icons not loaded > where

Re: RFR: 8296083: javax/swing/JTree/6263446/bug6263446.java fails intermittently on a VM [v2]

2022-11-14 Thread Prasanta Sadhukhan
On Mon, 14 Nov 2022 21:17:43 GMT, Phil Race wrote: > So it now passes 100% of the time on the OCI systems ? At least in my testing, links of those OCI jobs have been put in JBS too - PR: https://git.openjdk.org/jdk/pull/11057

Re: RFR: 8295006: Colored text is not shown on disabled checkbox and radio button with GTK LAF for bug4314194. [v4]

2022-11-14 Thread Tejesh R
On Mon, 14 Nov 2022 04:53:50 GMT, Abhishek Kumar wrote: >> Existing test >> `open/test/jdk/javax/swing/JRadioButton/4314194/bug4314194.java` was not >> showing colored text for disabled checkbox and radiobutton in GTK LAF. >> >> The fix is to get the disabled state color for checkbox and

RFR: 8148041: Test java/awt/Mouse/TitleBarDoubleClick/TitleBarDoubleClick fails on Ubuntu with mouseReleased event after double click on title bar

2022-11-14 Thread Alexander Zvegintsev
This test was problem listed with ["some tests that leave windows open on the desktop" reason](https://github.com/openjdk/jdk/commit/fd8df3adf13f5df8f5f95482b8e0a70bc519f39f) The main issue with the test is that it may pass, but in fact the actual test was not even performed. `jtreg` kills the

Re: RFR: 8295369: Update LCMS to 2.14 [v3]

2022-11-14 Thread Phil Race
On Mon, 14 Nov 2022 19:09:40 GMT, Alisen Chung wrote: >> These look to me like tabs have not been replaced by spaces.. >> I saw a lot of "shifts" and I spot-checked some of them but they looked like >> ones where upstream had readily changed indentation. >> This does not look like that. > > I'm

Re: RFR: 8296083: javax/swing/JTree/6263446/bug6263446.java fails intermittently on a VM [v2]

2022-11-14 Thread Phil Race
On Mon, 14 Nov 2022 06:56:20 GMT, Prasanta Sadhukhan wrote: >> Test intermittently fails in VM citing "Tree is not editing". Seems to be >> problem with mouse clicks not getting registered properly.. >> Similar test test/jdk/javax/swing/JTable/6263446/bug6263446.java is not >> affected, so

Re: RFR: 8293862: javax/swing/JFileChooser/8046391/bug8046391.java failed with 'Cannot invoke "java.awt.Image.getWidth(java.awt.image.ImageObserver)" because "retVal" is null'

2022-11-14 Thread Phil Race
On Fri, 11 Nov 2022 08:18:19 GMT, Tejesh R wrote: > Observation found when JFileChooser is instantiated in WindowsLookAndFeel > which invokes getSystemIcon() from WindowsFileChooserUI class. Could not find > the exact root cause so predicting it to be an issue with icons not loaded > where

Re: RFR: 8293862: javax/swing/JFileChooser/8046391/bug8046391.java failed with 'Cannot invoke "java.awt.Image.getWidth(java.awt.image.ImageObserver)" because "retVal" is null'

2022-11-14 Thread Alexey Ivanov
On Fri, 11 Nov 2022 08:18:19 GMT, Tejesh R wrote: > Observation found when JFileChooser is instantiated in WindowsLookAndFeel > which invokes getSystemIcon() from WindowsFileChooserUI class. Could not find > the exact root cause so predicting it to be an issue with icons not loaded > where

Re: RFR: 8157173: [macosx] java/awt/Robot/ModifierRobotKey/ModifierRobotKeyTest.java fails [v2]

2022-11-14 Thread Alexander Zvegintsev
On Mon, 14 Nov 2022 18:39:46 GMT, Phil Race wrote: > So - apart from the last change to use volatile - you found nothing > functionally wrong with the test ? There's so much clean up I can't be sure > I'm not missing some functional change you made. If there was nothing wrong > with it, why

Integrated: 8286624: Regression Test CoordinateTruncationBug.java fails on OL8.3

2022-11-14 Thread Phil Race
On Sat, 12 Nov 2022 20:29:39 GMT, Phil Race wrote: > This was a closed test - simply because it hadn't been reviewed for moving to > open > so I am doing it now whilst fixing a problem that was observed on the OL 8.x > (and > by implication an RHEL 8.x) desktop due to the screen menu bar

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

2022-11-14 Thread Xue-Lei Andrew Fan
> 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 use sprintf method. For the long run, the sprintf > could be

Re: RFR: 8296496: Overzealous check in sizecalc.h prevents large memory allocation [v3]

2022-11-14 Thread Alexey Ivanov
On Mon, 14 Nov 2022 19:27:44 GMT, Sergey Bylokhov wrote: >> src/java.desktop/share/native/common/awt/utility/sizecalc.h line 94: >> >>> 92: >>> 93: #define SAFE_SIZE_NEW_ARRAY2(type, n, m) \ >>> 94: (IS_SAFE_SIZE_MUL((m), (n)) && IS_SAFE_SIZE_MUL(sizeof(type), (n) * >>> (m)) ? \ >> >>

Re: RFR: 8296496: Overzealous check in sizecalc.h prevents large memory allocation [v3]

2022-11-14 Thread Sergey Bylokhov
On Mon, 14 Nov 2022 19:20:25 GMT, Sergey Bylokhov wrote: >> Alexander Zuev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fixed casting in SAFE_SIZE_NEW_ARRAY2 > > src/java.desktop/share/native/common/awt/utility/sizecalc.h line 94: >

Re: RFR: 8296496: Overzealous check in sizecalc.h prevents large memory allocation [v3]

2022-11-14 Thread Sergey Bylokhov
On Tue, 8 Nov 2022 23:43:23 GMT, Alexander Zuev wrote: >> Removed the additional multiplication overflow detection. >> Instead cast all the parameters to type_t just the way they are treated in >> the existing size check macro. >> This way there is no possibility to accidentally provide

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

2022-11-14 Thread Xue-Lei Andrew Fan
On Mon, 14 Nov 2022 10:21:07 GMT, Thomas Stuefe wrote: >> Xue-Lei Andrew Fan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> include missing os head file > > src/hotspot/share/adlc/output_c.cpp line 2570: > >> 2568: int idx =

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

2022-11-14 Thread Phil Race
On Mon, 14 Nov 2022 19:05:16 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

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

2022-11-14 Thread Xue-Lei Andrew Fan
> 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 use sprintf method. For the long run, the sprintf > could be

Re: RFR: 8295369: Update LCMS to 2.14 [v3]

2022-11-14 Thread Alisen Chung
On Thu, 10 Nov 2022 23:28:13 GMT, Phil Race wrote: >> src/java.desktop/share/native/liblcms/cmscgats.c line 2389: >> >>> 2387: >>> 2388: SetData(it8, i, idField, Buffer); >>> 2389: } >> >> Are these shifts caused by

Re: RFR: 8295369: Update LCMS to 2.14 [v4]

2022-11-14 Thread Alisen Chung
> Updating LCMS to newest release Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: fixed indentation problem in cmscgats.c - Changes: - all: https://git.openjdk.org/jdk/pull/11000/files - new:

Re: RFR: 8286624: Regression Test CoordinateTruncationBug.java fails on OL8.3 [v2]

2022-11-14 Thread Alexander Zuev
On Mon, 14 Nov 2022 18:26:21 GMT, Phil Race wrote: >> This was a closed test - simply because it hadn't been reviewed for moving >> to open >> so I am doing it now whilst fixing a problem that was observed on the OL 8.x >> (and >> by implication an RHEL 8.x) desktop due to the screen menu bar

Re: RFR: 8157173: [macosx] java/awt/Robot/ModifierRobotKey/ModifierRobotKeyTest.java fails [v2]

2022-11-14 Thread Phil Race
On Mon, 14 Nov 2022 14:38:38 GMT, Alexander Zvegintsev wrote: >> This test currently passing as it is on all platforms, but it was >> problemlisted with ["Problem List some tests that leave windows open on the >> desktop" >>

Re: RFR: 8286624: Regression Test CoordinateTruncationBug.java fails on OL8.3 [v2]

2022-11-14 Thread Phil Race
> This was a closed test - simply because it hadn't been reviewed for moving to > open > so I am doing it now whilst fixing a problem that was observed on the OL 8.x > (and > by implication an RHEL 8.x) desktop due to the screen menu bar rendering over > one > line of the undecorated window. >

Re: RFR: 8296222: SwingEventMonitor - installListeners(Component , int ) - CELLEDITOR - bug

2022-11-14 Thread Alexander Zuev
On Thu, 10 Nov 2022 08:01:38 GMT, Abhishek Kumar wrote: > It seems there was a typo inside function `installListeners(Component, int)` > and `removeListeners(Component)` on case EventID.CELLEDITOR. > > Changed the string from "getCellEditorMethod" to "getCellEditor" in > `protected void

Re: RFR: 8295707: Create a regression test for JDK-7184401 [v2]

2022-11-14 Thread lawrence . andrews
On Mon, 7 Nov 2022 07:28:02 GMT, Srinivas Mandalika wrote: >> 8295707: Create a regression test for JDK-7184401 >> >> JDK-7184401 - JDk7u6 : Missing main menu bar in Netbeans after fix for >> 7162144 >> Above bug got introduced due to a fix for >>

Re: RFR: 8296632: Write a test to verify the content change of TextArea sends TextEvent. [v4]

2022-11-14 Thread lawrence . andrews
On Fri, 11 Nov 2022 08:20:55 GMT, ravi gupta wrote: >> This testcase Verify the content changes of a TextArea for the following >> assertions. >> >> a. TextListener get invoked when the content of a TextArea gets changed. >> b. TextListener not get invoked during text selection or when Special

Integrated: 8164464: Consistent failure of java/awt/dnd/MissingEventsOnModalDialog/MissingEventsOnModalDialogTest.java

2022-11-14 Thread Alexander Zvegintsev
On Mon, 14 Nov 2022 00:23:09 GMT, Alexander Zvegintsev wrote: > This is an old issue, which is no longer reproducible. > The test is slightly stabilized for slow machines. > > CI testing looks good. This pull request has now been integrated. Changeset: b0edfc11 Author:Alexander

Re: RFR: 8157173: [macosx] java/awt/Robot/ModifierRobotKey/ModifierRobotKeyTest.java fails [v2]

2022-11-14 Thread Alexander Zvegintsev
On Mon, 14 Nov 2022 08:08:53 GMT, Sergey Bylokhov wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Addressing review comments > > test/jdk/java/awt/Robot/ModifierRobotKey/ModifierRobotKeyTest.java line 159:

Re: RFR: 8157173: [macosx] java/awt/Robot/ModifierRobotKey/ModifierRobotKeyTest.java fails [v2]

2022-11-14 Thread Alexander Zvegintsev
> This test currently passing as it is on all platforms, but it was > problemlisted with ["Problem List some tests that leave windows open on the > desktop" > reason](https://github.com/openjdk/jdk/commit/fd8df3adf13f5df8f5f95482b8e0a70bc519f39f) > > So this test is cleaned up and stabilized.

Re: RFR: 8271846 a11y API lacks setSelectedIndex method [v4]

2022-11-14 Thread Artem Semenov
On Fri, 11 Nov 2022 21:40:40 GMT, Sergey Bylokhov wrote: >> We tried to do this, it leads to an endless repetition of the selected line >> until it freezes. > > Probably because of the endless notifications loop? implementation of > addSelectionInterval looks similar to setSelectionInterval.

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

2022-11-14 Thread Thomas Stuefe
On Mon, 14 Nov 2022 05:32:20 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

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

2022-11-14 Thread Andrew Haley
On Mon, 14 Nov 2022 05:32:20 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

Re: RFR: 8295707: Create a regression test for JDK-7184401 [v2]

2022-11-14 Thread Srinivas Mandalika
On Mon, 7 Nov 2022 07:28:02 GMT, Srinivas Mandalika wrote: >> 8295707: Create a regression test for JDK-7184401 >> >> JDK-7184401 - JDk7u6 : Missing main menu bar in Netbeans after fix for >> 7162144 >> Above bug got introduced due to a fix for >>

Re: RFR: 8157173: [macosx] java/awt/Robot/ModifierRobotKey/ModifierRobotKeyTest.java fails

2022-11-14 Thread Sergey Bylokhov
On Mon, 14 Nov 2022 00:12:00 GMT, Alexander Zvegintsev wrote: > This test currently passing as it is on all platforms, but it was > problemlisted with ["Problem List some tests that leave windows open on the > desktop" >

Re: RFR: 8164464: Consistent failure of java/awt/dnd/MissingEventsOnModalDialog/MissingEventsOnModalDialogTest.java

2022-11-14 Thread Sergey Bylokhov
On Mon, 14 Nov 2022 00:23:09 GMT, Alexander Zvegintsev wrote: > This is an old issue, which is no longer reproducible. > The test is slightly stabilized for slow machines. > > CI testing looks good. Marked as reviewed by serb (Reviewer). - PR:

Re: RFR: 8296812: sprintf is deprecated in Xcode 14

2022-11-14 Thread Thomas Stuefe
On Sun, 13 Nov 2022 22:55:52 GMT, Xue-Lei Andrew Fan wrote: > Please don't add uses of `jio_snprintf` or `::snprintf` to hotspot. Use > `os::snprintf`. I did not know this was our policy now. Sorry for giving the wrong advice. Maybe we should add this to the hotspot style guide since I'm

Re: RFR: 8296905: Replace the native LCMS#getProfileID() method with the accessor

2022-11-14 Thread Sergey Bylokhov
On Sat, 12 Nov 2022 09:18:57 GMT, Andrey Turbanov wrote: >> The native method used to access the private method in the `ICC_Profile` >> class is replaced by the accessor. > > src/java.desktop/share/classes/sun/awt/AWTAccessor.java line 891: > >> 889: */ >> 890: public static