On Fri, 26 Sep 2025 11:23:03 GMT, Daniel Gredler <[email protected]> wrote:
> Until [JDK-4138921](https://bugs.openjdk.org/browse/JDK-4138921), > `TextLayout` did not accept empty strings in the constructor. This limitation > has been removed. However, there is a guard condition in > `OutlineTextRenderer` which checks for an empty string before trying to use > `TextLayout` which explicitly calls out this limitation in a code comment. We > should remove the out-of-date comment but leave the check in as an > optimization (see discussion in PR #26947). This pull request has now been integrated. Changeset: fdbba049 Author: Daniel Gredler <[email protected]> URL: https://git.openjdk.org/jdk/commit/fdbba049a2491c591fc1a866e4707bf9aac50f17 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod 8368775: Remove outdated comment in OutlineTextRenderer Reviewed-by: prr, dnguyen, serb ------------- PR: https://git.openjdk.org/jdk/pull/27523
