Skip to content

Fix interface discovery in CloseShieldChannel#800

Merged
garydgregory merged 1 commit intomasterfrom
fix/close-shield-interfaces2
Oct 14, 2025
Merged

Fix interface discovery in CloseShieldChannel#800
garydgregory merged 1 commit intomasterfrom
fix/close-shield-interfaces2

Conversation

@ppkarwasz
Copy link
Contributor

This PR is split from #799.

The CloseShieldChannel implementation only inspects interfaces directly implemented by the given channel’s class, ignoring those inherited from its superclasses. As a result, proxies for types such as FileChannel does not expose any of the interfaces declared on FileChannel itself.

This PR is split from #799.

The `CloseShieldChannel` implementation only inspects interfaces **directly** implemented by the given channel’s class, ignoring those inherited from its superclasses.
As a result, proxies for types such as `FileChannel` does not expose any of the interfaces declared on `FileChannel` itself.
Copy link
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you @ppkarwasz

@garydgregory garydgregory merged commit 2542ebc into master Oct 14, 2025
21 checks passed
@garydgregory garydgregory changed the title Fixes interface discovery in CloseShieldChannel Fix interface discovery in CloseShieldChannel Oct 14, 2025
asf-gitbox-commits pushed a commit that referenced this pull request Oct 14, 2025
@garydgregory garydgregory deleted the fix/close-shield-interfaces2 branch October 14, 2025 19:19
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