Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kie-issues#1154] Make KieSession auto-closeable #5890

Merged
merged 3 commits into from
May 7, 2024

Conversation

baldimir
Copy link
Contributor

@baldimir baldimir commented May 6, 2024

Fixes: apache/incubator-kie-issues#1154

Makes KieSession implement the AutoCloseable interface, so it can be used in try-with-resources code blocks. No new tests added, because KieSession does not have any listener for dispose events. Therefore, some tests were changed to use try-with-resources to dispose the KieSession.

@baldimir
Copy link
Contributor Author

baldimir commented May 7, 2024

Jenkins failure is not related to my changes, it is caused by environment.

@baldimir baldimir merged commit 35ba0a1 into apache:main May 7, 2024
9 of 10 checks passed
rgdoliveira pushed a commit to rgdoliveira/drools that referenced this pull request May 9, 2024
@baldimir baldimir deleted the kiesession-autocloseable branch October 11, 2024 08:25
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.

Make KieSession auto-closeable
3 participants