Skip to content

8224267: JOptionPane message string with 5000+ newlines produces StackOverflowError #3036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sercher
Copy link

@sercher sercher commented May 28, 2025

Hi all,

Please review the parity backports with 11.0.28-oracle. 8224267 and 8290162 are clean. The functional part of 5074006 applied cleanly in BasicOptionPaneUI.java. The test required to replace the text block (JEP 355 style) with traditional string literals in TestJOptionHTMLTag.java.

Thanks!


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • JDK-8042134 needs maintainer approval
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-5074006 needs maintainer approval
  • JDK-8224267 needs maintainer approval
  • JDK-8290162 needs maintainer approval

Issues

  • JDK-8224267: JOptionPane message string with 5000+ newlines produces StackOverflowError (Bug - P3 - Requested)
  • JDK-8290162: Reset recursion counter missed in fix of JDK-8224267 (Bug - P4 - Requested)
  • JDK-5074006: Swing JOptionPane shows </html> tag as a string after newline (Bug - P4 - Requested)
  • JDK-8042134: JOptionPane bungles HTML messages (Bug - P4 - Requested)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/3036/head:pull/3036
$ git checkout pull/3036

Update a local copy of the PR:
$ git checkout pull/3036
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/3036/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3036

View PR using the GUI difftool:
$ git pr show -t 3036

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/3036.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented May 28, 2025

👋 Welcome back schernyshev! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented May 28, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title Backport 46251bc6e248a19e8d78173ff8d0502c68ee1acb 8224267: JOptionPane message string with 5000+ newlines produces StackOverflowError May 28, 2025
@openjdk
Copy link

openjdk bot commented May 28, 2025

This backport pull request has now been updated with issue from the original commit.

@openjdk
Copy link

openjdk bot commented May 28, 2025

⚠️ @sercher This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk bot added the rfr Pull request is ready for review label May 28, 2025
@mlbridge
Copy link

mlbridge bot commented May 28, 2025

Webrevs

@mrserb
Copy link
Member

mrserb commented Jun 4, 2025

do you plan to backport https://bugs.openjdk.org/browse/JDK-8290162 as well?

@sercher
Copy link
Author

sercher commented Jun 4, 2025

do you plan to backport https://bugs.openjdk.org/browse/JDK-8290162 as well?

@mrserb yes, 8290162 and 5074006, that depend on this one.

@sercher
Copy link
Author

sercher commented Jun 4, 2025

/approval request Parity backport with 11.0.28-oracle,
This affects 8 and 11,
This is a clean backport,
The test passes with the fix and fails otherwise.

@openjdk
Copy link

openjdk bot commented Jun 4, 2025

@sercher
8224267: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Jun 4, 2025
@openjdk openjdk bot removed the clean label Jun 7, 2025
@sercher
Copy link
Author

sercher commented Jun 7, 2025

/issue add 8290162,5074006

@openjdk
Copy link

openjdk bot commented Jun 7, 2025

@sercher
Adding additional issue to issue list: 8290162: Reset recursion counter missed in fix of JDK-8224267.

Adding additional issue to issue list: 5074006: Swing JOptionPane shows </html> tag as a string after newline.

@sercher
Copy link
Author

sercher commented Jun 8, 2025

/issue add 8042134

@openjdk
Copy link

openjdk bot commented Jun 8, 2025

@sercher
Adding additional issue to issue list: 8042134: JOptionPane bungles HTML messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval backport rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

3 participants