Skip to content
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

[Bug]: Unexpected String-representation of system stream in formatted output #20

Open
sormuras opened this issue Nov 2, 2023 · 0 comments
Assignees
Labels
bug Something isn't working playground

Comments

@sormuras
Copy link

sormuras commented Nov 2, 2023

What happened?

The following statements

System.out.println("| " + Runtime.version());
System.out.printf("| %s%n", Runtime.version());

lead to

| 21+35-LTS-2513
java.io.PrintStream@314c508a| 21+35-LTS-2513

which contain an unexpected java.io.PrintStream@314c508a output (the value returned by System.out.toString()) start of the second one.

OS

Other

What browsers are you seeing the problem on?

No response

Contact Details (optional)

No response

Additional information

No response

@delabassee delabassee added the bug Something isn't working label Nov 2, 2023
@delabassee delabassee self-assigned this Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working playground
Projects
None yet
Development

No branches or pull requests

2 participants