[jdk8u-dev] RFR: 8224267: JOptionPane message string with 5000+ newlines produces StackOverflowError [v3]
Sergey Chernyshev
schernyshev at openjdk.org
Wed Sep 17 06:27:37 UTC 2025
> Hi all,
>
> These are parity backports with Oracle's 8u461, OpenJDK 8u462 is affected. The commit [46251bc6](https://github.com/openjdk/jdk/commit/46251bc6e248a19e8d78173ff8d0502c68ee1acb) didn't apply cleanly as JDK-8049870 hasn't been backported to jdk8u-dev. JDK-8290162 is basically a clean backport, the paths changed to 8u path scheme. The functional part of 5074006 applied cleanly in BasicOptionPaneUI.java. The test in TestJOptionHTMLTag.java was rewritten to get rid of dependency on PassFailJFrame (not in 8). Replaced the text block (JEP 355 style) with traditional string literals. The paths have been changed to the 8u path scheme. The test passes with the fix and fails otherwise.
>
> Thanks!
Sergey Chernyshev has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains four commits:
- Merge remote-tracking branch 'dev/master' into backport-sercher-46251bc6-master
# Conflicts:
# jdk/src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java
- Backport 91072ee3934616ab2edc4850a59c0a25fd0de3b4
- Backport 6e18883d8ffd9a7b7d495da05e9859dc1d1a2677
- Backport 46251bc6e248a19e8d78173ff8d0502c68ee1acb
-------------
Changes: https://git.openjdk.org/jdk8u-dev/pull/659/files
Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=659&range=02
Stats: 233 lines in 3 files changed: 202 ins; 17 del; 14 mod
Patch: https://git.openjdk.org/jdk8u-dev/pull/659.diff
Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/659/head:pull/659
PR: https://git.openjdk.org/jdk8u-dev/pull/659
More information about the jdk8u-dev
mailing list