Re: RFR: 8364135: JPEGImageReader.getImageTypes() should throw exception for negative image index [v2]

2025-08-20 Thread Jayathirth D V
On Tue, 29 Jul 2025 17:22:09 GMT, Phil Race wrote: >> Jayathirth D V 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 five additional >> commits

Re: RFR: 8364135: JPEGImageReader.getImageTypes() should throw exception for negative image index [v2]

2025-08-20 Thread Jayathirth D V
On Fri, 1 Aug 2025 00:31:45 GMT, Alisen Chung wrote: >> Jayathirth D V 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 five additional >> commit

Re: RFR: 8361610: Avoid wasted work in ImageIcon(Image) for setting description

2025-08-20 Thread Alexander Zuev
On Thu, 21 Aug 2025 02:30:11 GMT, Prasanta Sadhukhan wrote: > The `ImageIcon(Image)` constructor sets the description field to the value of > "comment" property if it's a string. The `ImageIcon(Image, String)` > constructor calls ImageIcon(Image). Since the two-parameter constructor > explici

Re: RFR: 8364135: JPEGImageReader.getImageTypes() should throw exception for negative image index [v2]

2025-08-20 Thread Jayathirth D V
> We need to throw appropriate exception when we pass invalid image index > values to ImageReader.getImageTypes(). > We throw IOOBE in all other plugins except JPEG, Added appropriate check to > throw IOOBE when JpegImageReader has invalid image index. Jayathirth D V has updated the pull request

Re: RFR: 8365708: Add missing @Override annotations to WindowsMenuItemUIAccessor

2025-08-20 Thread Alexander Zuev
On Mon, 18 Aug 2025 16:49:48 GMT, Alexey Ivanov wrote: > Add the missing `@Override` annotations to anonymous classes implementing > `WindowsMenuItemUIAccessor`. > > PR #24170 for [JDK-8352638](https://bugs.openjdk.org/browse/JDK-8352638) > added the `@Override` annotations to `getMenuItem` an

Re: RFR: 8365425: [macos26] javax/swing/JInternalFrame/8160248/JInternalFrameDraggingTest.java fails on macOS 26

2025-08-20 Thread Alexander Zuev
On Tue, 19 Aug 2025 17:25:03 GMT, Sergey Bylokhov wrote: > the test might be updated to render components into the buffered image and > then compare exact values. And what does it test then? The original bug was about dragging the internal frame creates artifacts on the underlying component. B

Re: RFR: 8360160: ubuntu-22-04 machine is failing client tests

2025-08-20 Thread Prasanta Sadhukhan
On Thu, 21 Aug 2025 01:21:56 GMT, Damon Nguyen wrote: > Ubuntu machine has multiple failing java awt tests. When looking at the > screenshots of the desktop when each test fails, a white square can be seen > at the top-left of the desktop. > > src="https://github.com/user-attachments/assets/5

RFR: 8361610: Avoid wasted work in ImageIcon(Image) for setting description

2025-08-20 Thread Prasanta Sadhukhan
The `ImageIcon(Image)` constructor sets the description field to the value of "comment" property if it's a string. The `ImageIcon(Image, String)` constructor calls ImageIcon(Image). Since the two-parameter constructor explicitly provides the value for the description field, the implicitly set va

Re: RFR: 8365425: [macos26] javax/swing/JInternalFrame/8160248/JInternalFrameDraggingTest.java fails on macOS 26 [v2]

2025-08-20 Thread Prasanta Sadhukhan
> Test compares specific pixels with expected color and needed color profile > setting in macOS26 is not available it seems. > Since the pixel color difference is slightly off, I have added a tolerance > which had been present in many other tests so it's not without precedent Prasanta Sadhukhan

Re: RFR: 8365425: [macos26] javax/swing/JInternalFrame/8160248/JInternalFrameDraggingTest.java fails on macOS 26 [v2]

2025-08-20 Thread Damon Nguyen
On Thu, 21 Aug 2025 02:04:29 GMT, Prasanta Sadhukhan wrote: >> Test compares specific pixels with expected color and needed color profile >> setting in macOS26 is not available it seems. >> Since the pixel color difference is slightly off, I have added a tolerance >> which had been present in

Re: RFR: 8365425: [macos26] javax/swing/JInternalFrame/8160248/JInternalFrameDraggingTest.java fails on macOS 26

2025-08-20 Thread Prasanta Sadhukhan
On Tue, 19 Aug 2025 06:14:21 GMT, Prasanta Sadhukhan wrote: > Test compares specific pixels with expected color and needed color profile > setting in macOS26 is not available it seems. > Since the pixel color difference is slightly off, I have added a tolerance > which had been present in many

Re: RFR: 8365389: Remove static color fields from SwingUtilities3 and WindowsMenuItemUI [v4]

2025-08-20 Thread Prasanta Sadhukhan
On Tue, 19 Aug 2025 20:12:40 GMT, Phil Race wrote: >> This refactors some Swing code to pass args instead of using statics >> The bug report suggests some further refactoring which could be considered >> later, but the most >> important thing to do is to eliminate using statics to pass args. >>

RFR: 8360160: ubuntu-22-04 machine is failing client tests

2025-08-20 Thread Damon Nguyen
Ubuntu machine has multiple failing java awt tests. When looking at the screenshots of the desktop when each test fails, a white square can be seen at the top-left of the desktop. https://github.com/user-attachments/assets/52d023f6-18ff-46d4-98c4-e2e332ab6a03"; /> This seems to be similar to t

Re: RFR: 4197755: Arc2D.getBounds() returns an unnecessarily large bounding box

2025-08-20 Thread Jeremy Wood
On Wed, 20 Aug 2025 21:30:13 GMT, Phil Race wrote: >> 4197755 is marked as a duplicate of >> [JDK-8176501](https://bugs.openjdk.org/browse/JDK-8176501) , but I think >> that is a mistake. The complaint in that ticket still reproduces, and it is >> resolved in this PR. >> >> The complaint is:

Re: RFR: 8365425: [macos26] javax/swing/JInternalFrame/8160248/JInternalFrameDraggingTest.java fails on macOS 26

2025-08-20 Thread Damon Nguyen
On Tue, 19 Aug 2025 06:14:21 GMT, Prasanta Sadhukhan wrote: > Test compares specific pixels with expected color and needed color profile > setting in macOS26 is not available it seems. > Since the pixel color difference is slightly off, I have added a tolerance > which had been present in many

Re: RFR: 8260555: Change the default TIMEOUT_FACTOR from 4 to 1 [v4]

2025-08-20 Thread David Holmes
On Wed, 20 Aug 2025 15:21:39 GMT, Magnus Ihse Bursie wrote: > I realize that this is highly hardware dependent, but test times tend to be > Pareto distributed, so a very quick test maybe takes 1 second on fast > machines and 10 on slow, @magicus unfortunately that is often not the case in pra

Re: RFR: 4197755: Arc2D.getBounds() returns an unnecessarily large bounding box

2025-08-20 Thread Phil Race
On Sun, 10 Aug 2025 04:35:43 GMT, Jeremy Wood wrote: > 4197755 is marked as a duplicate of > [JDK-8176501](https://bugs.openjdk.org/browse/JDK-8176501) , but I think that > is a mistake. The complaint in that ticket still reproduces, and it is > resolved in this PR. > > The complaint is: Arc2

Re: RFR: 8302057: Wrong BeanProperty description for JTable.setShowGrid

2025-08-20 Thread Sergey Bylokhov
On Wed, 20 Aug 2025 20:09:20 GMT, Phil Race wrote: >> src/java.desktop/share/classes/javax/swing/JTable.java line 1167: >> >>> 1165: */ >>> 1166: @BeanProperty(description >>> 1167: = "Whether grid lines should be drawn in between the >>> cells.") >> >> It probably need a

Re: RFR: 8365569: Remove finalize from JavaSoundAudioClip.java

2025-08-20 Thread Phil Race
On Fri, 15 Aug 2025 01:32:06 GMT, Sergey Bylokhov wrote: > How about modifying the listeners list implementations to store listeners > using weak references instead(not sure it will be better that the current > patch)? it seems current implementation can cause memory leaks? Memory leaks ? Whe

Re: RFR: 8365292: Remove javax.imageio.spi.ServiceRegistry.finalize() [v2]

2025-08-20 Thread Phil Race
On Fri, 15 Aug 2025 20:06:21 GMT, Sergey Bylokhov wrote: >> I thought about that whilst making the change, but >> (1) The javax.imagio.ImageIO class has this code >> >> private static final IIORegistry theRegistry = >> IIORegistry.getDefaultInstance(); >> >> So it is going to get initiali

Re: RFR: 8365292: Remove javax.imageio.spi.ServiceRegistry.finalize() [v2]

2025-08-20 Thread Phil Race
> Remove javax.imageio.spi.ServiceRegistry.finalize() since it is deprecated > for removal. > The impact of this should be minimal. The IIORegistry will now be a singleton > - which it already was > in practice since Applets are no longer supported. Since it is a singleton, > it will persist fo

Re: RFR: 8365389: Remove static color fields from SwingUtilities3 and WindowsMenuItemUI [v2]

2025-08-20 Thread Phil Race
On Fri, 15 Aug 2025 22:09:15 GMT, Phil Race wrote: >>> > There are still static fields to store colors in `WindowsMenuItemUI`, do >>> > you want to get rid of those too? My bug report implied removing them, >>> > yet currently the static fields with colors remain intact in >>> > `WindowsMenuIt

Re: RFR: 8365711: Declare menuBarHeight and hotTrackingOn private

2025-08-20 Thread Phil Race
On Mon, 18 Aug 2025 17:05:26 GMT, Alexey Ivanov wrote: > Since `WindowsMenuUI` is a final class after PR #24170 for > [JDK-8352638](https://bugs.openjdk.org/browse/JDK-8352638)), it cannot be > extended, therefore the `protected` modifier doesn't make sense. > > Mark both `menuBarHeight` and `

Re: RFR: 8302057: Wrong BeanProperty description for JTable.setShowGrid

2025-08-20 Thread Phil Race
On Wed, 20 Aug 2025 11:16:15 GMT, Prasanta Sadhukhan wrote: >> Hi Reviewers, >> >> Updated the Bean Property description with meaningful string for >> JTable.setShowGrid. >> >> Pleas review and let me know your suggestions if any. > > src/java.desktop/share/classes/javax/swing/JTable.java lin

Re: RFR: 8302057: Wrong BeanProperty description for JTable.setShowGrid

2025-08-20 Thread Phil Race
On Wed, 20 Aug 2025 09:30:31 GMT, Renjith Kannath Pariyangad wrote: > Hi Reviewers, > > Updated the Bean Property description with meaningful string for > JTable.setShowGrid. > > Pleas review and let me know your suggestions if any. Marked as reviewed by prr (Reviewer). - PR Re

Re: RFR: 8260555: Change the default TIMEOUT_FACTOR from 4 to 1 [v5]

2025-08-20 Thread Magnus Ihse Bursie
On Wed, 20 Aug 2025 17:05:59 GMT, Leo Korinth wrote: >> This changes the timeout factor from 4 to 1. Most of the changes add >> timeouts to individual test cases so that I am able to run them with a >> timeout factor of 0.7 (some margin to the checked in factor of one) >> >> In addition to cha

Re: RFR: 8260555: Change the default TIMEOUT_FACTOR from 4 to 1 [v5]

2025-08-20 Thread Leo Korinth
> This changes the timeout factor from 4 to 1. Most of the changes add timeouts > to individual test cases so that I am able to run them with a timeout factor > of 0.7 (some margin to the checked in factor of one) > > In addition to changing the timeout factor, I am also using a library call to

Withdrawn: 8352407: PixelInterleavedSampleModel with unused components throws RasterFormatException: Incorrect pixel stride

2025-08-20 Thread duke
On Wed, 19 Mar 2025 11:23:13 GMT, Nikita Gubarkov wrote: > 8352407: PixelInterleavedSampleModel with unused components throws > RasterFormatException: Incorrect pixel stride This pull request has been closed without being integrated. - PR: https://git.openjdk.org/jdk/pull/24111

Re: RFR: 8361067: Test ExtraButtonDrag.java requires frame.dispose in finally block [v9]

2025-08-20 Thread Damon Nguyen
On Wed, 6 Aug 2025 09:43:48 GMT, Ravi Gupta wrote: >> Test test/jdk/java/awt/Mouse/MouseModifiersUnitTest/ExtraButtonDrag.java >> left debris on system whenever fails its required frame.dispose() in finally >> block. >> >> >> finally { >> EventQueue.invokeAndWait(ExtraButtonDrag:

Re: RFR: 8260555: Change the default TIMEOUT_FACTOR from 4 to 1 [v4]

2025-08-20 Thread Leo Korinth
On Wed, 20 Aug 2025 16:24:43 GMT, Leo Korinth wrote: >> doc/testing.md line 385: >> >>> 383: (`-timeoutFactor`). Also, some test cases that programmatically wait a >>> 384: certain amount of time will apply this factor. If we run in >>> 385: forced compilation mode (`-Xcomp`), [RunTest.gmk](../m

Re: RFR: 8260555: Change the default TIMEOUT_FACTOR from 4 to 1 [v4]

2025-08-20 Thread Leo Korinth
On Wed, 20 Aug 2025 15:17:02 GMT, Magnus Ihse Bursie wrote: >> Leo Korinth has updated the pull request incrementally with one additional >> commit since the last revision: >> >> after suggestion from Daniel > > doc/testing.md line 385: > >> 383: (`-timeoutFactor`). Also, some test cases tha

Re: RFR: 8260555: Change the default TIMEOUT_FACTOR from 4 to 1 [v4]

2025-08-20 Thread Magnus Ihse Bursie
On Mon, 18 Aug 2025 16:34:21 GMT, Leo Korinth wrote: >> This changes the timeout factor from 4 to 1. Most of the changes add >> timeouts to individual test cases so that I am able to run them with a >> timeout factor of 0.7 (some margin to the checked in factor of one) >> >> In addition to cha

Re: RFR: 8260555: Change the default TIMEOUT_FACTOR from 4 to 1 [v4]

2025-08-20 Thread Magnus Ihse Bursie
On Mon, 18 Aug 2025 16:34:21 GMT, Leo Korinth wrote: >> This changes the timeout factor from 4 to 1. Most of the changes add >> timeouts to individual test cases so that I am able to run them with a >> timeout factor of 0.7 (some margin to the checked in factor of one) >> >> In addition to cha

Re: RFR: 8260555: Change the default TIMEOUT_FACTOR from 4 to 1 [v3]

2025-08-20 Thread SendaoYan
On Wed, 20 Aug 2025 12:53:23 GMT, David Holmes wrote: >> But what this PR do is change the timeoutFactor in general and find out all >> the tests which may timeout after the timeoutFactor has been changed. >> >> The old default timeout before this PR is 120 * 4, after this PR the new >> defaul

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v25]

2025-08-20 Thread Prasanta Sadhukhan
On Tue, 19 Aug 2025 14:54:16 GMT, Khalid Boulanouare wrote: >> Many Mixing tests failed because the work around click lands on the >> minimizing area in the window control and causes the tests to fail. >> >> This fix changes the width of base frames which allows most of tests to pass. > > Khali

Re: RFR: 8260555: Change the default TIMEOUT_FACTOR from 4 to 1 [v3]

2025-08-20 Thread David Holmes
On Tue, 19 Aug 2025 06:38:01 GMT, SendaoYan wrote: >> No change should be made to any explicit setting of the timeoutFactor in >> general as that could cause mass timeouts to occur (old default timeout = >> 120 * 10 = 1200 but new default = 120 * 2.5 = 300!). >> >> However I see the concern o

Re: RFR: 8364768: JDK javax.imageio ImageWriters do not all flush the output stream

2025-08-20 Thread Prasanta Sadhukhan
On Fri, 8 Aug 2025 17:31:03 GMT, Phil Race wrote: > 4 of the 6 JDK ImageWriters flush the stream at the end of writing. 2 (TIFF > and GIF) do not. > > This will matter if you are using a caching ImageOutputStream. > > This fix makes it consistent. src/java.desktop/share/classes/com/sun/image

Re: RFR: 8365609: Null pointer dereference in src/java.desktop/share/native/common/java2d/opengl/OGLBlitLoops.c OGLBlitToSurfaceViaTexture()

2025-08-20 Thread Artem Semenov
On Wed, 20 Aug 2025 05:27:03 GMT, Phil Race wrote: > There seem to be un-related changes in this PR. Please check. In [this](https://github.com/openjdk/jdk/pull/26002#issuecomment-3023050372) PR, they asked not to create multiple tickets for the same issues… even if they are in different files

Re: RFR: 8365609: Null pointer dereference in src/java.desktop/share/native/common/java2d/opengl/OGLBlitLoops.c OGLBlitToSurfaceViaTexture()

2025-08-20 Thread Artem Semenov
On Fri, 15 Aug 2025 17:05:18 GMT, Sergey Bylokhov wrote: > > The pointer pf is dereferenced in line 324 without checking for nullptr, > > although earlier in line 274 the same pointer is checked for nullptr, which > > indicates that it can be null. > > It is better first to confirm whether thi

Re: RFR: 8302057: Wrong BeanProperty description for JTable.setShowGrid

2025-08-20 Thread Prasanta Sadhukhan
On Wed, 20 Aug 2025 09:30:31 GMT, Renjith Kannath Pariyangad wrote: > Hi Reviewers, > > Updated the Bean Property description with meaningful string for > JTable.setShowGrid. > > Pleas review and let me know your suggestions if any. src/java.desktop/share/classes/javax/swing/JTable.java line

RFR: 8302057: Wrong BeanProperty description for JTable.setShowGrid

2025-08-20 Thread Renjith Kannath Pariyangad
Hi Reviewers, Updated the Bean Property description with meaningful string for JTable.setShowGrid. Pleas review and let me know your suggestions if any. - Commit messages: - 8302057: Wrong BeanProperty description for JTable.setShowGrid Changes: https://git.openjdk.org/jdk/pull/2

Re: RFR: 8361387 : Test bug4655513.java fails intermittently on Windows platform.

2025-08-20 Thread Prasanta Sadhukhan
On Mon, 18 Aug 2025 16:03:23 GMT, Anass Baya wrote: > This test was recently automated and is failing intermittently in the CI due > to timing issues. > This enhancement aims to stabilize the test and also adds the missing null > pointer check. test/jdk/javax/swing/DataTransfer/bug4655513.java

Re: RFR: 8364146: JList getScrollableUnitIncrement return 0 [v3]

2025-08-20 Thread Prasanta Sadhukhan
On Wed, 6 Aug 2025 05:48:33 GMT, Prasanta Sadhukhan wrote: >> it is "that" row being pointed to by visibleRect >> and yes CSR is needed but I want to finalise the wordings first. > > @prrace Can we just say "it will return >=0" or "it will return a > non-negative number" instead of explaining w

Integrated: 8359955: Regressions ~7% in several J2DBench in 25-b26

2025-08-20 Thread Daniel Gredler
On Fri, 8 Aug 2025 16:37:36 GMT, Daniel Gredler wrote: > Addresses recent slight performance regressions in some J2DBench benchmarks > focused on text drawing. > > `CCharToGlyphMapper` and `CompositeGlyphMapper` cache glyph IDs, but after > JDK-8353230 they weren't caching glyph IDs for chars