Skip to content

Use modern I/O#33

Merged
elharo merged 3 commits intomasterfrom
close
Dec 18, 2024
Merged

Use modern I/O#33
elharo merged 3 commits intomasterfrom
close

Conversation

@elharo
Copy link
Contributor

@elharo elharo commented Dec 18, 2024

In particular avoid PrintStream, which ignores I/O errors and hasn't been needed since Java 1.1

@elharo elharo marked this pull request as ready for review December 18, 2024 13:46
Copy link
Member

@slachiewicz slachiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it could be also simple Strings building

@elharo
Copy link
Contributor Author

elharo commented Dec 18, 2024

Looks like it could be also simple Strings building

You mean build the string and not write a file at all? I wondered that too. Maybe. That might be a bigger change, or have some inobvious bits. It would be better if we could do that.

@elharo
Copy link
Contributor Author

elharo commented Dec 18, 2024

Even better would be to invoke jmod through an API instead of the command line. But I don't know that we should let the perfect be the enemy of the good. The existing code is broken. This at least fixes some of that.

@elharo elharo merged commit 79aa4b8 into master Dec 18, 2024
@elharo elharo deleted the close branch December 18, 2024 15:19
@elharo
Copy link
Contributor Author

elharo commented Dec 18, 2024

I'm taking a stab at removing the I/O completely. The sticking point is that the integration tests are based on very precise log messages, a common antipattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants