Skip to content

Close PageUtil via try-with-resources - #904

Merged
akurtakov merged 1 commit into
OpenChrom:developfrom
akurtakov:pageutil-closeable
Aug 20, 2026
Merged

Close PageUtil via try-with-resources#904
akurtakov merged 1 commit into
OpenChrom:developfrom
akurtakov:pageutil-closeable

Conversation

@akurtakov

Copy link
Copy Markdown
Contributor

PageUtil is now Closeable in ChemClipse, where the finalize() fallback for closing the page content stream was dropped - Object.finalize() is deprecated for removal (JEP 421). Use try-with-resources so the content stream is closed even when page rendering throws.

Assisted-by: Anthropic Claude Code (claude-opus-5[1m])

PageUtil is now Closeable in ChemClipse, where the finalize() fallback for
closing the page content stream was dropped - Object.finalize() is
deprecated for removal (JEP 421). Use try-with-resources so the content
stream is closed even when page rendering throws.

Assisted-by: Anthropic Claude Code (claude-opus-5[1m])
@akurtakov

Copy link
Copy Markdown
Contributor Author

Depends on eclipse-chemclipse/chemclipse#3057

@akurtakov
akurtakov merged commit 79392d7 into OpenChrom:develop Aug 20, 2026
2 of 3 checks passed
@akurtakov
akurtakov deleted the pageutil-closeable branch August 20, 2026 10:26
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.

1 participant