Skip to content

Land the remaining cleanup from PR #5: drop leftover duplicate input.close() calls#174

Merged
anadon merged 1 commit into
masterfrom
claude/jls-pr-review-f3k831
Jul 17, 2026
Merged

Land the remaining cleanup from PR #5: drop leftover duplicate input.close() calls#174
anadon merged 1 commit into
masterfrom
claude/jls-pr-review-f3k831

Conversation

@anadon

@anadon anadon commented Jul 17, 2026

Copy link
Copy Markdown
Owner

What & why

Salvages the still-applicable piece of @AmityWilder's #5 onto current master. That PR correctly diagnosed the save-to-opened-file bug back in February; its core fix later landed independently via #34 (590f124), the improved save-error dialog message arrived with the TellUser/FileAbstractor refactors, and the Makefile/.gitignore changes were superseded by the Maven + Nix build. The one remnant master still carried was the duplicated unconditional input.close() in both command-line load paths of JLSStart — a later refactor moved the close ahead of the loadOK check but left the original trailing close behind. This drops the second close so each Scanner is closed exactly once. Amy is credited as co-author on the commit.

Closes #5

Testing

No behavior change to pin — closing an already-closed Scanner is a no-op, so this is purely cleanup. Full suite run locally on JDK 25: mvn test green, 398 tests, 0 failures (2 skipped for missing external HDL toolchains).

🤖 Generated with Claude Code

https://claude.ai/code/session_01XsCdD8B7xvL4A5VDyDLzWc


Generated by Claude Code

PR #5 (AmityWilder) diagnosed the save-to-opened-file bug and removed
these unconditional duplicate closes; the save fix itself later landed
via #34, but a subsequent refactor that moved the close ahead of the
loadOK check left the original trailing close behind in both
command-line load paths. Drop the second close so each Scanner is
closed exactly once (closing was a no-op the second time, this is
purely cleanup).

Co-authored-by: Amy Wilder <henrythepony@gmail.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsCdD8B7xvL4A5VDyDLzWc
@anadon anadon mentioned this pull request Jul 17, 2026
@anadon
anadon merged commit 8d4233c into master Jul 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants