Re: RFR: 8150564: Migrate useful ExtendedRobot methods into awt.Robot [v33]

2025-08-08 Thread Alisen Chung
> Some useful methods in ExtendedRobot should be migrated into Robot itself so > that ExtendedRobot can be removed in the future. The tests using > ExtendedRobot for these migrated methods are changed to use only Robot > (removing unnecessary building of ExtendedRobot). Alisen Chung has updated

RFR: 8365180: Remove sun.awt.windows.WInputMethod.finalize()

2025-08-08 Thread Phil Race
Remove finalize() from WInputMethod.java - it is used to free a native id. Also the reason dispose() didn't free it seems no longer relevant. Although I did see (when instrumenting) that dispose() was called when I disposed() the Frame referencing the IM, I don't know if I can be sure that is alwa

Re: RFR: 8364996: java/awt/font/FontNames/LocaleFamilyNames.java times out on Windows [v2]

2025-08-08 Thread Phil Race
On Fri, 8 Aug 2025 08:10:09 GMT, Matthias Baesken wrote: >> java/awt/font/FontNames/LocaleFamilyNames.java is slow on Windows and on >> some machines it even times out. >> Add some logging to the test, and we could also increase the test timeout a >> bit. > > Matthias Baesken has updated the pu

Re: RFR: 8277585: Remove the terminally deprecated finalize() method from javax.imageio.stream APIs [v3]

2025-08-08 Thread Alisen Chung
On Wed, 6 Aug 2025 22:34:30 GMT, Phil Race wrote: >> This PR removes javax/imageio/stream/ImageInputStreamImpl.finalize() >> As a result, sub-classes which over-ride it to be empty no longer need to do >> so. >> Also it means that the 2 remaining classes which used it no longer can. >> FileCache

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

2025-08-08 Thread Phil Race
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

Re: RFR: 8277585: Remove the terminally deprecated finalize() method from javax.imageio.stream APIs [v3]

2025-08-08 Thread Brent Christian
On Fri, 8 Aug 2025 19:39:52 GMT, Phil Race wrote: > > Can `MemoryCacheImageOutputStream` be included in this PR? > > Why ? It has nothing to dispose. Doesn't it have a `cache`, similar to `MemoryCacheImageInputStream` ? `public class MemoryCacheImageOutputStream extends ImageOutputStreamImpl {

Re: RFR: 8277585: Remove the terminally deprecated finalize() method from javax.imageio.stream APIs [v3]

2025-08-08 Thread Phil Race
On Fri, 8 Aug 2025 19:48:31 GMT, Brent Christian wrote: > > > Can `MemoryCacheImageOutputStream` be included in this PR? > > > > > > Why ? It has nothing to dispose. > > Doesn't it have a `cache`, similar to `MemoryCacheImageInputStream ` ? > > `public class MemoryCacheImageOutputStream exten

Re: RFR: 8277585: Remove the terminally deprecated finalize() method from javax.imageio.stream APIs [v3]

2025-08-08 Thread Phil Race
On Fri, 8 Aug 2025 19:32:34 GMT, Brent Christian wrote: > Can `MemoryCacheImageOutputStream` be included in this PR? Why ? It has nothing to dispose. - PR Comment: https://git.openjdk.org/jdk/pull/26650#issuecomment-3169104939

Re: RFR: 8277585: Remove the terminally deprecated finalize() method from javax.imageio.stream APIs [v3]

2025-08-08 Thread Brent Christian
On Wed, 6 Aug 2025 22:34:30 GMT, Phil Race wrote: >> This PR removes javax/imageio/stream/ImageInputStreamImpl.finalize() >> As a result, sub-classes which over-ride it to be empty no longer need to do >> so. >> Also it means that the 2 remaining classes which used it no longer can. >> FileCache

Re: RFR: 8297191: [macos] printing page range "page 2 to 2" or "page 2 to 4" on macOS leads to not print [v2]

2025-08-08 Thread Alexey Ivanov
On Wed, 6 Aug 2025 14:43:55 GMT, Christian Heilmann wrote: > Were you able to follow my explanations? Is there anything else I can do, to > get the pull request through the review? Sorry, I've been unable to thoroughly look at it. I'll get to this code review next week. - PR Comm

Re: RFR: 8364808: Make BasicDesktopPaneUI.Actions.MOVE_RESIZE_INCREMENT static

2025-08-08 Thread Alexey Ivanov
On Fri, 8 Aug 2025 07:23:46 GMT, Andrey Turbanov wrote: >> src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java >> line 33: >> >>> 31: import java.beans.*; >>> 32: >>> 33: import java.awt.event.ActionEvent; >> >> I suggest expanding all the wildcard imports: >> >> >

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

2025-08-08 Thread Phil Race
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. - Commit messages: - 8364768 Changes: https://git.openjdk.org/jdk/pull/26703/files Webrev:

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

2025-08-08 Thread Daniel Gredler
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 which might be affected by the raw / non-raw glyph distinction, si

Re: RFR: 8364434: Inconsistent BufferedContext state after GC [v3]

2025-08-08 Thread Nikita Gubarkov
On Thu, 7 Aug 2025 21:01:46 GMT, Alexey Ushakov wrote: >> I don't really understand how this could simplify the check. >> For wrapping, instead of `obj == null ? null : new WeakReference<>(obj)` it >> would become `Optional.ofNullable(obj).flatMap(e -> Optional.of(new >> WeakReference<>(obj)))`

Re: RFR: 8150564: Migrate useful ExtendedRobot methods into awt.Robot [v32]

2025-08-08 Thread Alexander Zvegintsev
On Thu, 7 Aug 2025 23:04:21 GMT, Alisen Chung wrote: >> Some useful methods in ExtendedRobot should be migrated into Robot itself so >> that ExtendedRobot can be removed in the future. The tests using >> ExtendedRobot for these migrated methods are changed to use only Robot >> (removing unnece

Re: RFR: 8150564: Migrate useful ExtendedRobot methods into awt.Robot [v30]

2025-08-08 Thread Alexander Zvegintsev
On Thu, 7 Aug 2025 22:58:06 GMT, Alisen Chung wrote: > I've updated the current tests in to remove /client/lib from the tests I > already removed ER from However, it seems that some of the touch tests are still using the ER, which will result in a compilation failure when run with CI. For inst

Re: RFR: 8364434: Inconsistent BufferedContext state after GC [v3]

2025-08-08 Thread Alexey Ushakov
On Thu, 7 Aug 2025 12:06:02 GMT, Nikita Gubarkov wrote: >> For "true" null objects, reset the ref itself to null. Non-null ref with >> null content means that the object was GC'ed. GC'ed state always behaves as >> not-equal to the new one, causing corresponding ops to be written into RQ. >> >>

Re: RFR: 8364996: java/awt/font/FontNames/LocaleFamilyNames.java times out on Windows [v2]

2025-08-08 Thread Christoph Langer
On Fri, 8 Aug 2025 08:10:09 GMT, Matthias Baesken wrote: >> java/awt/font/FontNames/LocaleFamilyNames.java is slow on Windows and on >> some machines it even times out. >> Add some logging to the test, and we could also increase the test timeout a >> bit. > > Matthias Baesken has updated the pu

Re: RFR: JDK-8361748 : Enforce limits on the size of an XBM image [v2]

2025-08-08 Thread Jayathirth D V
On Fri, 8 Aug 2025 10:03:18 GMT, Jayathirth D V wrote: >> ByteArrayOutputStream stmt part of try-with-resources block. > > I understand, but line no 55 has extra space instead of usual 4 space > indentation which is followed in next line. > Also its a good practice to wait for a day after replyi

Re: RFR: JDK-8361748 : Enforce limits on the size of an XBM image [v2]

2025-08-08 Thread Jayathirth D V
On Thu, 7 Aug 2025 21:27:53 GMT, Harshitha Onkar wrote: >> test/jdk/java/awt/image/XBMDecoder/XBMDecoderTest.java line 55: >> >>> 53: System.out.println("--- Testing " + fileName + " ---"); >>> 54: try (FileInputStream fis = new FileInputStream(file); >>> 55:

Re: RFR: 8364996: java/awt/font/FontNames/LocaleFamilyNames.java times out on Windows [v2]

2025-08-08 Thread Matthias Baesken
> java/awt/font/FontNames/LocaleFamilyNames.java is slow on Windows and on some > machines it even times out. > Add some logging to the test, and we could also increase the test timeout a > bit. Matthias Baesken has updated the pull request incrementally with one additional commit since the las

Re: RFR: 8364996: java/awt/font/FontNames/LocaleFamilyNames.java times out on Windows [v2]

2025-08-08 Thread Matthias Baesken
On Thu, 7 Aug 2025 16:48:16 GMT, Phil Race wrote: >> Matthias Baesken has updated the pull request incrementally with one >> additional commit since the last revision: >> >> reduce timeout value > > test/jdk/java/awt/font/FontNames/LocaleFamilyNames.java line 29: > >> 27: * @summary Tests t

Re: RFR: 8364808: Make BasicDesktopPaneUI.Actions.MOVE_RESIZE_INCREMENT static

2025-08-08 Thread Andrey Turbanov
On Thu, 7 Aug 2025 16:21:41 GMT, Alexey Ivanov wrote: >> Looks like no reasons for it to be instance field > > src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java > line 33: > >> 31: import java.beans.*; >> 32: >> 33: import java.awt.event.ActionEvent; > > I suggest