Skip to content

Close InputStream in parse#9548

Merged
zhangdaiscott merged 1 commit into
jeecgboot:mainfrom
tejasae-afk:fix/close-inputstream-in-parse
Apr 15, 2026
Merged

Close InputStream in parse#9548
zhangdaiscott merged 1 commit into
jeecgboot:mainfrom
tejasae-afk:fix/close-inputstream-in-parse

Conversation

@tejasae-afk

Copy link
Copy Markdown
Contributor

Spotted something in jeecg-boot/jeecg-boot-module/jeecg-boot-module-airag/src/main/java/org/jeecg/modules/airag/llm/document/TikaDocumentParser.java that might be worth a look: The resource opened there can leak if parse exits on an error path. this patch moves the allocation into try-with-resources so cleanup happens on every exit path — happy to close if this isn’t useful.

Happy to revise the approach or close this if it doesn’t fit — you know the codebase far better than I do.

@zhangdaiscott zhangdaiscott merged commit d48507a into jeecgboot:main Apr 15, 2026
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