On Tue, 24 Mar 2026 04:47:30 GMT, Trupti Patil <[email protected]> wrote:

> Fixed PrintNullString.java to accept empty iterator as a valid input.
> With recent TextLayout changes, empty iterators are treated as a no-op 
> (similar to empty strings) and no longer throw IllegalArgumentException, 
> causing the previous expectation to fail on newer JDKs.
> 
> Tested the fix on windows, macOS and linux; it works as expected across all 
> platforms.

This pull request has now been integrated.

Changeset: 7527da08
Author:    Trupti Patil <[email protected]>
Committer: Manukumar V S <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/7527da081b777f280144af5841874729a671e9c5
Stats:     14 lines in 1 file changed: 0 ins; 8 del; 6 mod

8377534: Test java/awt/print/PrinterJob/PrintNullString.java fails with 
FAILURE: No IAE for empty iterator, int

Reviewed-by: aivanov, prr

-------------

PR: https://git.openjdk.org/jdk/pull/30389

Reply via email to