Skip to content

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

Open
@sormuras

Description

@sormuras

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions