Integrated: 8318603: Parallelize sun/java2d/marlin/ClipShapeTest.java

2024-02-09 Thread Sergey Bylokhov
On Tue, 6 Feb 2024 03:10:36 GMT, Sergey Bylokhov wrote: > The ClipShapeTest test is split into 4 different tests which could be > executed in parallel. > > The execution time is changed from: > > > == > Test summary > == >TEST

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v3]

2024-02-09 Thread Christoph Langer
On Fri, 9 Feb 2024 14:23:28 GMT, Alexey Ivanov wrote: >> As far as I can see, the real problem is that `DWMIsCompositionEnabled` >> calls a Java method and does not check if an exception occurred. It should >> do it according to the JNI specification. >> >> I can assume `initScreens(env)`

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v4]

2024-02-09 Thread Christoph Langer
On Wed, 31 Jan 2024 06:05:18 GMT, Christoph Langer wrote: >> This picks up fixing the issue of >> [JDK-8276809](https://bugs.openjdk.org/browse/JDK-8276809) again. A fix had >> been integrated with #17224 but @prrace had concerns and so it was backed >> out. >> >> I have now spent quite some

Re: RFR: JDK-8323695 RenderPerf (2D) enhancements (23.12) [v5]

2024-02-09 Thread Laurent Bourgès
> - new executor modes (buffer & volatile) > - support parallel rendering on several frames and / or screens > - added robot calibration + optionally use rounded duration to min frame > latency (120Hz) > - give more statistics in verbose (-v) > - added new command-line arguments > - added version

Re: RFR: 8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer

2024-02-09 Thread Phil Race
On Fri, 9 Feb 2024 14:59:06 GMT, Renjith Kannath Pariyangad wrote: > Hi Reviewers, > I have updated the test with 'PassFailJFrame' with programmatically > generating image and print , please review and let me know your suggestions. > > > I thought SkippedException looks like a "pass" too ? >

Re: RFR: 8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer

2024-02-09 Thread Phil Race
On Fri, 9 Feb 2024 20:01:50 GMT, Phil Race wrote: > However, @key printer also covers the condition in this case. Yes, if we didn't have a keyword, then it would be less reasonable to fail the test. Like if a test requires multimon, and we don't have a keyword to support filtering such tests,

Re: RFR: 8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer

2024-02-09 Thread Alexey Ivanov
On Fri, 9 Feb 2024 19:27:32 GMT, Alexey Ivanov wrote: > > I thought SkippedException looks like a "pass" too ? > > What is effectively different by using it here ? > > No, it's not. If a test throws `jtreg.SkippedException`, then it's reported > as **skipped**. It is neither a failure nor a

Re: RFR: 8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer

2024-02-09 Thread Alexey Ivanov
On Fri, 9 Feb 2024 19:11:22 GMT, Phil Race wrote: > I thought SkippedException looks like a "pass" too ? > What is effectively different by using it here ? No, it's not. If a test throws `jtreg.SkippedException`, then it's reported as **skipped**. It is neither a failure nor a success — it

Re: RFR: 8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer

2024-02-09 Thread Phil Race
On Fri, 9 Feb 2024 14:59:06 GMT, Renjith Kannath Pariyangad wrote: > Hi Reviewers, > I have updated the test with 'PassFailJFrame' with programmatically > generating image and print , please review and let me know your suggestions. I thought SkippedException looks like a "pass" too ? What is

Re: RFR: JDK-8323695 RenderPerf (2D) enhancements (23.12) [v4]

2024-02-09 Thread Laurent Bourgès
On Fri, 9 Feb 2024 18:13:50 GMT, Alexey Ushakov wrote: >> Laurent Bourgès has updated the pull request incrementally with one >> additional commit since the last revision: >> >> JDK-8323695: use Font.DIALOG > > test/jdk/performance/client/RenderPerfTest/src/renderperf/RenderPerfTest.java >

Re: RFR: JDK-8323695 RenderPerf (2D) enhancements (23.12) [v4]

2024-02-09 Thread Alexey Ushakov
On Thu, 8 Feb 2024 22:12:17 GMT, Laurent Bourgès wrote: >> - new executor modes (buffer & volatile) >> - support parallel rendering on several frames and / or screens >> - added robot calibration + optionally use rounded duration to min frame >> latency (120Hz) >> - give more statistics in

Re: RFR: 8325558: Add jcheck whitespace checking for properties files

2024-02-09 Thread Naoto Sato
On Fri, 9 Feb 2024 13:35:55 GMT, Magnus Ihse Bursie wrote: > This is an attempt to finally implement the idea brought forward in > JDK-8295729: Properties files is essentially source code. It should have the > same whitespace checks as all other source code, so we don't get spurious >

Re: RFR: 8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer

2024-02-09 Thread Alexey Ivanov
On Fri, 9 Feb 2024 14:59:06 GMT, Renjith Kannath Pariyangad wrote: > Hi Reviewers, > I have updated the test with 'PassFailJFrame' with programmatically > generating image and print , please review and let me know your suggestions. test/jdk/java/awt/PrintJob/ImageTest/ImageTest.java line 151:

Re: RFR: 8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer

2024-02-09 Thread Alexey Ivanov
On Fri, 9 Feb 2024 14:59:06 GMT, Renjith Kannath Pariyangad wrote: > Hi Reviewers, > I have updated the test with 'PassFailJFrame' with programmatically > generating image and print , please review and let me know your suggestions. Should we mark `paint` and `imageUpdate` with `@Override`

RFR: 8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer

2024-02-09 Thread Renjith Kannath Pariyangad
Hi Reviewers, I have updated the test with 'PassFailJFrame' with programmatically generating image and print , please review and let me know your suggestions. - Commit messages: - JDK-8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer

Re: RFR: 8325558: Add jcheck whitespace checking for properties files

2024-02-09 Thread Erik Joelsson
On Fri, 9 Feb 2024 13:42:02 GMT, Magnus Ihse Bursie wrote: >> This is an attempt to finally implement the idea brought forward in >> JDK-8295729: Properties files is essentially source code. It should have >> the same whitespace checks as all other source code, so we don't get >> spurious

Re: RFR: 8325309: Amend "Listeners and Threads" in AWTThreadIssues.html

2024-02-09 Thread Alan Snyder
I took a look at this file and found a couple of points that I’m not sure about (unrelated to the RFR): EventQueue.isDispatchThread returns true if and only if the calling thread is the event dispatch thread started by the machinery; The statement that events are dispatched on

Re: RFR: 8323801: tag doesn't strikethrough the text

2024-02-09 Thread Alexey Ivanov
On Fri, 9 Feb 2024 10:52:54 GMT, Prasanta Sadhukhan wrote: >> When `` tag is used inside ``, the `line-through` style is lost, and >> the text is rendered with `underline` only. However, if `` is used, >> the text is rendered with both `underline` and `line-through` styles. >> >> Both `` and

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v3]

2024-02-09 Thread Alexey Ivanov
On Fri, 9 Feb 2024 03:12:57 GMT, Phil Race wrote: >> Yes. However, it's "only" in the assertion callback that only exists in >> debug VMs. And an original exception isn't lost. > > Perhaps what we should do here is > if (ExceptionCheck) { > ExceptionDescribe > ExceptionClear > } > So someone

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v3]

2024-02-09 Thread Alexey Ivanov
On Fri, 9 Feb 2024 14:20:02 GMT, Alexey Ivanov wrote: >> Perhaps what we should do here is >> if (ExceptionCheck) { >> ExceptionDescribe >> ExceptionClear >> } >> So someone can "see" [yes, this means it isn't propagated but we've printed >> it and we have the assert coming up anyway] the

Re: RFR: 8325558: Add jcheck whitespace checking for properties files

2024-02-09 Thread Daniel Fuchs
On Fri, 9 Feb 2024 13:35:55 GMT, Magnus Ihse Bursie wrote: > This is an attempt to finally implement the idea brought forward in > JDK-8295729: Properties files is essentially source code. It should have the > same whitespace checks as all other source code, so we don't get spurious >

Re: RFR: 8323801: tag doesn't strikethrough the text

2024-02-09 Thread Alexey Ivanov
On Fri, 9 Feb 2024 10:52:01 GMT, Prasanta Sadhukhan wrote: >> When `` tag is used inside ``, the `line-through` style is lost, and >> the text is rendered with `underline` only. However, if `` is used, >> the text is rendered with both `underline` and `line-through` styles. >> >> Both `` and

Re: RFR: 8325558: Add jcheck whitespace checking for properties files

2024-02-09 Thread Magnus Ihse Bursie
On Fri, 9 Feb 2024 13:35:55 GMT, Magnus Ihse Bursie wrote: > This is an attempt to finally implement the idea brought forward in > JDK-8295729: Properties files is essentially source code. It should have the > same whitespace checks as all other source code, so we don't get spurious >

Re: RFR: 8325558: Add jcheck whitespace checking for properties files

2024-02-09 Thread Magnus Ihse Bursie
On Fri, 9 Feb 2024 13:35:55 GMT, Magnus Ihse Bursie wrote: > This is an attempt to finally implement the idea brought forward in > JDK-8295729: Properties files is essentially source code. It should have the > same whitespace checks as all other source code, so we don't get spurious >

RFR: 8325558: Add jcheck whitespace checking for properties files

2024-02-09 Thread Magnus Ihse Bursie
This is an attempt to finally implement the idea brought forward in JDK-8295729: Properties files is essentially source code. It should have the same whitespace checks as all other source code, so we don't get spurious trailing whitespace changes or leading tabs instead of spaces. With Skara

Re: RFR: 8318603: Parallelize sun/java2d/marlin/ClipShapeTest.java [v2]

2024-02-09 Thread Alexey Ivanov
On Fri, 9 Feb 2024 02:17:01 GMT, Phil Race wrote: > > I ran the test in our CI and I didn't notice an improvement. > > Did you run jdk:tier4 like Sergey was doing ? No, I ran just this single test. I don't know how Sergey is running the test. > Our CI runs some number of (headless) tests in

Re: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L [v2]

2024-02-09 Thread Abhishek Kumar
> JLabel text is not painted with the LAF defined foreground color in GTK LAF. > In GTK LAF the foreground color is retrieved by using native system APIs. Fix > is to return the foreground color if it is set by LAF defined property > otherwise return the default color by calling native APIs. >

Re: RFR: 8318603: Parallelize sun/java2d/marlin/ClipShapeTest.java [v3]

2024-02-09 Thread Alexey Ivanov
On Fri, 9 Feb 2024 02:13:16 GMT, Sergey Bylokhov wrote: >> The ClipShapeTest test is split into 4 different tests which could be >> executed in parallel. >> >> The execution time is changed from: >> >> >> == >> Test summary >> == >>

Re: RFR: 8226990: GTK & Nimbus LAF: Tabbed pane's background color is not expected one when change the opaque checkbox. [v2]

2024-02-09 Thread Abhishek Kumar
> JTabbedPane's content area, tab area and tab background color are not as > expected when opaque is set to true or false. > The proposed fix is to handle the TabbedPane's background color in installed > LAFs. Manual test is added to support the fix and there is no regression > caused by the

Integrated: 8325309: Amend "Listeners and Threads" in AWTThreadIssues.html

2024-02-09 Thread Alexey Ivanov
On Tue, 6 Feb 2024 08:39:01 GMT, Alexey Ivanov wrote: > Replace _“effect”_ with _“affect”_¹ because the meaning in the phrase “…the > changes only _effect_ subsequent notification” is to “have an effect on.” > > Add a comma to separate a conditional clause from the main one. > > Use ``

Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v10]

2024-02-09 Thread Alan Bateman
On Thu, 8 Feb 2024 07:44:18 GMT, Magnus Ihse Bursie wrote: >> Similar to [JDK-8318696](https://bugs.openjdk.org/browse/JDK-8318696), we >> should use -D_FILE_OFFSET_BITS=64, and not -D_LARGEFILE64_SOURCE in the JDK >> native libraries. > > Magnus Ihse Bursie has updated the pull request

Re: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close [v3]

2024-02-09 Thread Renjith Kannath Pariyangad
On Wed, 7 Feb 2024 17:48:41 GMT, Alexey Ivanov wrote: >> Renjith Kannath Pariyangad has updated the pull request incrementally with >> one additional commit since the last revision: >> >> Disposed g2D object and similar test parm into one line > >

Re: RFR: 8323801: tag doesn't strikethrough the text

2024-02-09 Thread Prasanta Sadhukhan
On Wed, 31 Jan 2024 17:08:58 GMT, Alexey Ivanov wrote: > When `` tag is used inside ``, the `line-through` style is lost, and > the text is rendered with `underline` only. However, if `` is used, > the text is rendered with both `underline` and `line-through` styles. > > Both `` and `` should

Re: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L

2024-02-09 Thread Tejesh R
On Thu, 8 Feb 2024 05:17:02 GMT, Abhishek Kumar wrote: > JLabel text is not painted with the LAF defined foreground color in GTK LAF. > In GTK LAF the foreground color is retrieved by using native system APIs. Fix > is to return the foreground color if it is set by LAF defined property >

Re: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v5]

2024-02-09 Thread Renjith Kannath Pariyangad
> Hi Reviewers, > > Updated manual printer test cases with 'PassFailJFrame', also removed unused > variables. Added 'SkippedException' in case of printer missing or not > configured. > > Please review and let me know your suggestions. > > Regards, > Renjith Renjith Kannath Pariyangad has

Re: RFR: 8307246 : Printing: banded raster path doesn't account for device offset values [v10]

2024-02-09 Thread vtstydev
On Fri, 9 Feb 2024 03:21:44 GMT, Phil Race wrote: >> vtstydev has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Remove trailing whitespace >> - Done requested fixes 2 > >> > Revert the changes to the test which limit the pages printed

Re: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v4]

2024-02-09 Thread Renjith Kannath Pariyangad
On Thu, 8 Feb 2024 12:03:19 GMT, Alexey Ivanov wrote: >> Renjith Kannath Pariyangad has updated the pull request incrementally with >> one additional commit since the last revision: >> >> Review comments integrated > > test/jdk/java/awt/print/PrinterJob/DrawImage.java line 131: > >> 129:

Re: RFR: 8307246 : Printing: banded raster path doesn't account for device offset values [v11]

2024-02-09 Thread vtstydev
> More correct way to take in consideration nonzero PHYSICALOFFSETX, > PHYSICALOFFSETY of device for banded-raster printing loop. Only on Windows > platform under certain conditions real device prints shifted image on paper. vtstydev has updated the pull request incrementally with one

Re: RFR: 8226990: GTK & Nimbus LAF: Tabbed pane's background color is not expected one when change the opaque checkbox.

2024-02-09 Thread Andrey Turbanov
On Tue, 6 Feb 2024 05:43:26 GMT, Abhishek Kumar wrote: > JTabbedPane's content area, tab area and tab background color are not as > expected when opaque is set to true or false. > The proposed fix is to handle the TabbedPane's background color in installed > LAFs. Manual test is added to